Created
May 1, 2010 18:21
-
-
Save grayrest/386551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx' | |
md5 '8a787e538a8e4d80d4927535be5af083' | |
depends_on 'sdl' | |
def install | |
# Force i386 | |
%w{ CFLAGS CXXFLAGS LDFLAGS OBJCFLAGS OBJCXXFLAGS }.each do |compiler_flag| | |
ENV.remove compiler_flag, "-arch x86_64" | |
ENV.append compiler_flag, "-arch i386" | |
end | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--disable-sdltest" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment