homebrew-core/Formula/sdl_image.rb

22 lines
612 B
Ruby
Raw Normal View History

require 'formula'
require Formula.path('sdl')
2011-03-10 05:11:03 +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'
homepage 'http://www.libsdl.org/projects/SDL_image'
2009-11-23 02:32:54 +00:00
md5 '6c06584b31559e2b59f2b982d0d1f628'
depends_on 'sdl'
def install
ENV.x11 # For Freetype
Sdl.use_homebrew_prefix 'SDL_image.pc.in'
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-freetype-exec-prefix=/usr/X11"
system "make install"
end
end