Permalink
Browse files

Add formulae for {lib,}mp3splt

  • Loading branch information...
Nicolas Pinto
Nicolas Pinto committed Aug 19, 2011
1 parent 7ecea6f commit f221036962c41c95d5dd0927b24ab1f02d74204e
Showing with 42 additions and 0 deletions.
  1. +27 −0 Library/Formula/libmp3splt.rb
  2. +15 −0 Library/Formula/mp3splt.rb
@@ -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
View
@@ -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.