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-06-07 01:35:12 +00:00
|
|
|
depends_on :x11 # for Freetype
|
2009-10-12 02:31:40 +00:00
|
|
|
|
2012-03-30 09:01:38 +00:00
|
|
|
def options
|
|
|
|
[['--universal', 'Build universal binaries.']]
|
|
|
|
end
|
|
|
|
|
2009-10-12 02:31:40 +00:00
|
|
|
def install
|
2012-03-30 09:01:38 +00:00
|
|
|
ENV.universal_binary if ARGV.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",
|
|
|
|
"--disable-sdltest",
|
2012-06-07 01:35:12 +00:00
|
|
|
"--with-freetype-exec-prefix=#{MacOS.x11_prefix}"
|
2009-10-12 02:31:40 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|