2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-23 18:02:02 +00:00
|
|
|
require Formula.path('sdl')
|
2009-10-12 02:31:40 +00:00
|
|
|
|
|
|
|
class SdlImage <Formula
|
2009-11-23 02:32:54 +00:00
|
|
|
url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.tar.gz'
|
2009-10-12 02:31:40 +00:00
|
|
|
homepage 'http://www.libsdl.org/projects/SDL_image'
|
2009-11-23 02:32:54 +00:00
|
|
|
md5 '6c06584b31559e2b59f2b982d0d1f628'
|
2009-10-12 02:31:40 +00:00
|
|
|
|
|
|
|
depends_on 'libpng'
|
|
|
|
depends_on 'sdl'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.x11 # For Freetype
|
2009-10-23 18:02:02 +00:00
|
|
|
Sdl.use_homebrew_prefix 'SDL_image.pc.in'
|
2009-10-12 02:31:40 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-sdltest",
|
|
|
|
"--with-freetype-exec-prefix=/usr/X11"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|