libsndfile: use option DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
f20fcca9e8
commit
8eb24aa4ca
1 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue