aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-08-12 12:59:40 -0500
committerJack Nagel2012-08-12 13:01:04 -0500
commit18805dd249dc6e5517d6f61a945a06db499758fc (patch)
tree27d25ee4e6530cc60e2862b097b28a32e22b9569 /Library/Formula
parent7dbf0ab31da1a62c2b9bd1c7d5f338204e106567 (diff)
downloadhomebrew-18805dd249dc6e5517d6f61a945a06db499758fc.tar.bz2
sdl: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb
index 574586e9e..dd8873ffd 100644
--- a/Library/Formula/sdl.rb
+++ b/Library/Formula/sdl.rb
@@ -9,14 +9,12 @@ class Sdl < Formula
depends_on :x11
- if ARGV.build_head?
+ if build.head?
depends_on :automake
depends_on :libtool
end
- def options
- [['--universal', 'Build universal binaries.']]
- end
+ option :universal
def install
# we have to do this because most build scripts assume that all sdl modules
@@ -24,9 +22,9 @@ class Sdl < Formula
# keg-only but I doubt that will be needed.
inreplace %w[sdl.pc.in sdl-config.in], '@prefix@', HOMEBREW_PREFIX
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
- system "./autogen.sh" if ARGV.build_head?
+ system "./autogen.sh" if build.head?
args = %W[--prefix=#{prefix}]
args << "--disable-nasm" unless MacOS.mountain_lion? # might work with earlier, might only work with new clang