d68d97bb4b
- This allows pygame to run on an universal Python. Closes Homebrew/homebrew#11303. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
21 lines
577 B
Ruby
21 lines
577 B
Ruby
require 'formula'
|
|
|
|
class SdlNet < Formula
|
|
url 'http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.7.tar.gz'
|
|
homepage 'http://www.libsdl.org/projects/SDL_net/'
|
|
md5 '6bd4662d1423810f3140d4da21b6d912'
|
|
|
|
depends_on 'sdl'
|
|
|
|
def options
|
|
[['--universal', 'Build universal binaries.']]
|
|
end
|
|
|
|
def install
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-sdltest"
|
|
system "make install"
|
|
end
|
|
end
|