diff options
| author | Adam Vandenberg | 2012-08-09 22:18:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 22:18:01 -0700 |
| commit | e70cbef4e677d552fcaecbd1f4bfa2601da845c5 (patch) | |
| tree | 8c9544523c0c19207fa83a37a2525105dac14eee /Library | |
| parent | 9128cb5189d726ef6c4b09768189fddb35c13700 (diff) | |
| download | homebrew-e70cbef4e677d552fcaecbd1f4bfa2601da845c5.tar.bz2 | |
SDL_net: use options dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sdl_net.rb | 8 |
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" |
