homebrew-core/Formula/libsndfile.rb
irh 4c8a048dd0 libsndfile: universal option and update to 1.0.25
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-20 08:04:25 -07:00

20 lines
503 B
Ruby

require 'formula'
class Libsndfile < Formula
homepage 'http://www.mega-nerd.com/libsndfile/'
url 'http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz'
md5 'e2b7bb637e01022c7d20f95f9c3990a2'
depends_on 'pkg-config' => :build
def options
[["--universal", "Build a universal binary."]]
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end