2009-10-13 13:14:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Madplay < Formula
|
2012-02-29 08:13:15 +00:00
|
|
|
homepage 'http://www.underbit.com/products/mad/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/mad/madplay/0.15.2b/madplay-0.15.2b.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '29105eb27c1416aa33c8d1ab3404a8e5f0aecd3f'
|
2009-10-13 13:14:22 +00:00
|
|
|
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'libid3tag'
|
|
|
|
|
2014-03-14 15:03:25 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/89276/trunk/dports/audio/madplay/files/patch-audio_carbon.c"
|
|
|
|
sha1 "bfad8010e755f3bf3f51884aceaa69b1deb3f940"
|
2009-10-13 13:14:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-02-29 08:13:15 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"]
|
2010-08-19 21:13:48 +00:00
|
|
|
# Avoid "error: CPU you selected does not support x86-64 instruction set"
|
2013-08-02 03:40:42 +00:00
|
|
|
args << "--build=#{Hardware::CPU.arch_64_bit}" if MacOS.prefer_64_bit?
|
2012-02-29 08:13:15 +00:00
|
|
|
system "./configure", *args
|
2009-10-13 13:14:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|