homebrew-core/Formula/sdl_net.rb

23 lines
622 B
Ruby
Raw Normal View History

require 'formula'
2009-09-30 17:39:24 +00:00
2011-03-10 05:11:03 +00:00
class SdlNet < Formula
2009-09-30 17:39:24 +00:00
homepage 'http://www.libsdl.org/projects/SDL_net/'
url 'http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz'
sha1 'fd393059fef8d9925dc20662baa3b25e02b8405d'
2009-09-30 17:39:24 +00:00
2012-07-26 02:51:20 +00:00
depends_on 'pkg-config' => :build
2009-09-30 17:39:24 +00:00
depends_on 'sdl'
def options
[['--universal', 'Build universal binaries.']]
end
2009-09-30 17:39:24 +00:00
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
2009-09-30 17:39:24 +00:00
"--disable-sdltest"
system "make install"
end
end