SDL_net: use options dsl

This commit is contained in:
Adam Vandenberg committed 2012-08-09 22:18:01 -07:00
1 parent 9128cb5189
commit e70cbef4e6
1 file changed
+3 -5
+3 -5
View File
@@ -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"