libsndfile: use option DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-12 12:55:58 -05:00
parent f20fcca9e8
commit 8eb24aa4ca

View file

@ -7,9 +7,7 @@ class Libsndfile < Formula
depends_on 'pkg-config' => :build
def options
[["--universal", "Build a universal binary."]]
end
option :universal
def patches
# libsndfile doesn't find Carbon.h using XCode 4.3:
@ -18,7 +16,7 @@ class Libsndfile < Formula
end
def install
ENV.universal_binary if ARGV.build_universal?
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"