sdl_sound: add universal option

Closes Homebrew/homebrew#32443.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Mark J. Reed 2014-09-19 21:36:20 -04:00 committed by Jack Nagel
parent a7d51dbf03
commit 021516c27f

View file

@ -13,6 +13,8 @@ class SdlSound < Formula
depends_on "libtool" => :build
end
option :universal
depends_on 'pkg-config' => :build
depends_on 'sdl'
depends_on 'flac' => :optional
@ -23,6 +25,7 @@ class SdlSound < Formula
depends_on 'physfs' => :optional
def install
ENV.universal_binary if build.universal?
if build.head?
inreplace "bootstrap", "/usr/bin/glibtoolize",
"#{Formula["libtool"].opt_bin}/glibtoolize"