2013-08-28 12:52:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sdl2Image < Formula
|
|
|
|
homepage 'http://www.libsdl.org/projects/SDL_image/'
|
|
|
|
url 'http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz'
|
|
|
|
sha1 '20b1b0db9dd540d6d5e40c7da8a39c6a81248865'
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2013-08-28 12:52:24 +00:00
|
|
|
|
2013-11-07 06:34:12 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-08-28 12:52:24 +00:00
|
|
|
depends_on 'sdl2'
|
|
|
|
depends_on 'jpeg' => :recommended
|
|
|
|
depends_on 'libpng' => :recommended
|
|
|
|
depends_on 'libtiff' => :recommended
|
|
|
|
depends_on 'webp' => :recommended
|
2013-11-07 06:23:23 +00:00
|
|
|
|
2013-08-28 12:52:24 +00:00
|
|
|
option :universal
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
inreplace 'SDL2_image.pc.in', '@prefix@', HOMEBREW_PREFIX
|
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--enable-imageio=no"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|