Skip to content

Instantly share code, notes, and snippets.

@grayrest
Created May 1, 2010 18:21
Show Gist options
  • Save grayrest/386551 to your computer and use it in GitHub Desktop.
Save grayrest/386551 to your computer and use it in GitHub Desktop.
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