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/'
|
2009-10-13 13:14:22 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mad/madplay/0.15.2b/madplay-0.15.2b.tar.gz'
|
|
|
|
md5 '6814b47ceaa99880c754c5195aa1aac1'
|
|
|
|
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'libid3tag'
|
|
|
|
|
|
|
|
def patches
|
2012-01-23 01:07:39 +00:00
|
|
|
{:p0 => "https://trac.macports.org/export/89276/trunk/dports/audio/madplay/files/patch-audio_carbon.c"}
|
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"
|
2012-02-29 08:13:15 +00:00
|
|
|
args << "--build=x86_64" if MacOS.prefer_64_bit?
|
|
|
|
system "./configure", *args
|
2009-10-13 13:14:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|