2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-12 02:31:40 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SdlImage < Formula
|
2009-10-12 02:31:40 +00:00
|
|
|
homepage 'http://www.libsdl.org/projects/SDL_image'
|
2012-07-02 08:08:22 +00:00
|
|
|
url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz'
|
|
|
|
sha1 '5e3e393d4e366638048bbb10d6a269ea3f4e4cf2'
|
2009-10-12 02:31:40 +00:00
|
|
|
|
|
|
|
depends_on 'sdl'
|
|
|
|
|
2012-08-12 18:00:00 +00:00
|
|
|
option :universal
|
2012-03-30 09:01:38 +00:00
|
|
|
|
2009-10-12 02:31:40 +00:00
|
|
|
def install
|
2012-08-12 18:00:00 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-04-16 17:27:54 +00:00
|
|
|
inreplace 'SDL_image.pc.in', '@prefix@', HOMEBREW_PREFIX
|
2009-10-12 02:31:40 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
2012-07-26 02:51:20 +00:00
|
|
|
"--disable-sdltest"
|
2009-10-12 02:31:40 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|