Skip to content

Commit

Permalink
Add formulae for {lib,}mp3splt
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Pinto committed Aug 19, 2011
1 parent 7ecea6f commit f221036
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Library/Formula/libmp3splt.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require 'formula'

class Libmp3splt < Formula
url 'http://downloads.sourceforge.net/project/mp3splt/libmp3splt/0.6.1a/libmp3splt-0.6.1a.tar.gz'
homepage 'http://mp3splt.sourceforge.net'
md5 'a6a00d83e49adf27abb7a0cb0ea384a4'

depends_on 'gettext'
depends_on 'pkg-config'
depends_on 'pcre'
depends_on 'libid3tag'
depends_on 'libmad'
depends_on 'libvorbis'

def patches
# fixes unneeded depencency on autopoint and uses glibtoolize instead of libtoolize
"https://gist.github.com/raw/1034717/931c582cba12d5afcbaa3edd6032baa25bebf5d8/autogen.sh.patch"
end

def install
system "ACLOCAL_FLAGS=\"-I /usr/local/share/aclocal $ACLOCAL_FLAGS\" ./autogen.sh"
system "autoconf && automake"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
15 changes: 15 additions & 0 deletions Library/Formula/mp3splt.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'formula'

class Mp3splt < Formula
url 'http://downloads.sourceforge.net/project/mp3splt/mp3splt/2.3a/mp3splt-2.3a.tar.gz'
homepage 'http://mp3splt.sourceforge.net'
md5 '1fe663f7de5a6949bbe5b6aa78fea79f'

depends_on 'libmp3splt'

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end

0 comments on commit f221036

Please sign in to comment.