homebrew-core/Formula/sdl_image.rb
Max Howell 5ce0734c8b Fix SDL pc files and sdl-config
So many tools expect all SDL modules to be installed in the same place. So we have to change the prefix path to HOMEBREW_PREFIX. This is probably the correct thing to do in general in fact.
2009-10-23 19:22:51 +01:00

23 lines
677 B
Ruby

require 'formula'
require Formula.path('sdl')
class SdlImage <Formula
url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.8.tar.gz'
homepage 'http://www.libsdl.org/projects/SDL_image'
md5 '2e7c3efa0ec2acc039c46960e27c0792'
depends_on 'libpng'
depends_on 'sdl'
def install
ENV.x11 # For Freetype
Sdl.use_homebrew_prefix 'SDL_image.pc.in'
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-freetype-exec-prefix=/usr/X11"
system "make install"
end
end