aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 22:18:01 -0700
committerAdam Vandenberg2012-08-09 22:18:01 -0700
commite70cbef4e677d552fcaecbd1f4bfa2601da845c5 (patch)
tree8c9544523c0c19207fa83a37a2525105dac14eee
parent9128cb5189d726ef6c4b09768189fddb35c13700 (diff)
downloadhomebrew-e70cbef4e677d552fcaecbd1f4bfa2601da845c5.tar.bz2
SDL_net: use options dsl
-rw-r--r--Library/Formula/sdl_net.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/sdl_net.rb b/Library/Formula/sdl_net.rb
index e4fb8b183..91463e8f0 100644
--- a/Library/Formula/sdl_net.rb
+++ b/Library/Formula/sdl_net.rb
@@ -5,15 +5,13 @@ class SdlNet < Formula
url 'http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz'
sha1 'fd393059fef8d9925dc20662baa3b25e02b8405d'
+ option :universal
+
depends_on 'pkg-config' => :build
depends_on 'sdl'
- def options
- [['--universal', 'Build universal binaries.']]
- end
-
def install
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest"