2009-11-17 22:41:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libsndfile < Formula
|
2009-11-17 22:41:05 +00:00
|
|
|
homepage 'http://www.mega-nerd.com/libsndfile/'
|
2011-07-19 00:16:25 +00:00
|
|
|
url 'http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz'
|
|
|
|
md5 'e2b7bb637e01022c7d20f95f9c3990a2'
|
2009-11-17 22:41:05 +00:00
|
|
|
|
2010-10-17 16:59:04 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2011-07-19 00:16:25 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2009-11-17 22:41:05 +00:00
|
|
|
def install
|
2011-07-19 00:16:25 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
|
2010-04-24 03:17:18 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2009-11-17 22:41:05 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|