From 4e52d43666e76f7dd8d01418f4dcf1bcfc6cb2fe Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 13:00:00 -0500 Subject: sdl_image: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/sdl_image.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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}", -- cgit v1.2.3