diff options
| author | Jack Nagel | 2012-08-12 13:00:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 13:01:05 -0500 |
| commit | 4e52d43666e76f7dd8d01418f4dcf1bcfc6cb2fe (patch) | |
| tree | 1606417a354c1229c399dd69571ba8b2c4cfb40b /Library/Formula | |
| parent | 429cccf96f8758566706de9a4e4701fddc11741f (diff) | |
| download | homebrew-4e52d43666e76f7dd8d01418f4dcf1bcfc6cb2fe.tar.bz2 | |
sdl_image: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdl_image.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/sdl_image.rb b/Library/Formula/sdl_image.rb index 0617201c6..f89614d1b 100644 --- a/Library/Formula/sdl_image.rb +++ b/Library/Formula/sdl_image.rb @@ -9,12 +9,10 @@ class SdlImage < Formula depends_on 'sdl' depends_on :x11 - def options - [['--universal', 'Build universal binaries.']] - end + option :universal def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? inreplace 'SDL_image.pc.in', '@prefix@', HOMEBREW_PREFIX system "./configure", "--prefix=#{prefix}", |
