From e70cbef4e677d552fcaecbd1f4bfa2601da845c5 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 9 Aug 2012 22:18:01 -0700 Subject: SDL_net: use options dsl --- Library/Formula/sdl_net.rb | 8 +++----- 1 file 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" -- cgit v1.2.3