homebrew-core/Formula/sdl_gfx.rb
Michal Bendowski d68d97bb4b Enable universal build on some SDL packages
- This allows pygame to run on an universal Python.

Closes Homebrew/homebrew#11303.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-15 15:27:03 -05:00

24 lines
727 B
Ruby

require 'formula'
class SdlGfx < Formula
url 'http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.20.tar.gz'
homepage 'http://www.ferzkopp.net/joomla/content/view/19/14/'
md5 '8a787e538a8e4d80d4927535be5af083'
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}",
"--enable-static=no",
"--enable-shared=yes",
"--disable-sdltest",
"--disable-mmx"
system "make install"
end
end