2011-10-15 05:09:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libmp3splt < Formula
|
2012-02-07 19:49:31 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mp3splt/libmp3splt/0.7.1/libmp3splt-0.7.1.tar.gz'
|
2011-10-15 05:09:49 +00:00
|
|
|
homepage 'http://mp3splt.sourceforge.net'
|
2012-02-07 19:49:31 +00:00
|
|
|
md5 '62025951f483334f14f1b9be58162094'
|
2011-10-15 05:09:49 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2012-03-06 21:01:45 +00:00
|
|
|
depends_on 'automake' => :build unless MacOS.lion?
|
2011-10-15 05:09:49 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'libid3tag'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
|
2012-03-06 21:01:45 +00:00
|
|
|
# autogen.sh calls `libtoolize`, while OS X installs under the name `glibtoolize`
|
|
|
|
# reported upstream at https://sourceforge.net/tracker/?func=detail&aid=3497957&group_id=55130&atid=476061
|
2012-03-06 17:43:01 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2011-10-15 05:09:49 +00:00
|
|
|
def install
|
2012-03-06 21:01:45 +00:00
|
|
|
if !MacOS.lion?
|
2012-03-06 17:43:01 +00:00
|
|
|
system "./autogen.sh"
|
|
|
|
system "autoconf"
|
|
|
|
end
|
2011-10-15 05:09:49 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-03-06 17:43:01 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/autogen.sh b/autogen.sh
|
|
|
|
index 68962f2..916b868 100755
|
|
|
|
--- a/autogen.sh
|
|
|
|
+++ b/autogen.sh
|
|
|
|
@@ -53,7 +53,7 @@ echo -n "1/6 Running autopoint... " \
|
|
|
|
&& echo -n "3/6 Running autoheader... " \
|
|
|
|
&& autoheader && echo "done" \
|
|
|
|
&& echo -n "4/6 Running libtoolize... " \
|
|
|
|
-&& libtoolize -c --force && echo "done" \
|
|
|
|
+&& glibtoolize -c --force && echo "done" \
|
|
|
|
&& echo -n "5/6 Running autoconf... " \
|
|
|
|
&& autoconf && echo "done" \
|
|
|
|
&& echo -n "6/6 Running automake... " \
|