34 lines
1,018 B
Ruby
34 lines
1,018 B
Ruby
require 'formula'
|
|
|
|
class SdlImage < Formula
|
|
homepage 'http://www.libsdl.org/projects/SDL_image'
|
|
url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz'
|
|
sha1 '5e3e393d4e366638048bbb10d6a269ea3f4e4cf2'
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "2633470db61673b7c934e98a5f64c6ac838bd920" => :mavericks
|
|
sha1 "e430d59dd88e9365afac2b01149ca015a715a683" => :mountain_lion
|
|
sha1 "119c2a893214ad25fd1ee832165a14b1323ddc02" => :lion
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'sdl'
|
|
depends_on 'jpeg' => :recommended
|
|
depends_on 'libpng' => :recommended
|
|
depends_on 'libtiff' => :recommended
|
|
depends_on 'webp' => :recommended
|
|
|
|
option :universal
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
inreplace 'SDL_image.pc.in', '@prefix@', HOMEBREW_PREFIX
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--disable-dependency-tracking",
|
|
"--disable-sdltest"
|
|
system "make install"
|
|
end
|
|
end
|