SDL2_image 2.0.0
A very simple formula to install sdl2_image. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
9d89f1d2af
commit
f5c1bf0ec1
1 changed files with 23 additions and 0 deletions
23
Formula/sdl2_image.rb
Normal file
23
Formula/sdl2_image.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
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'
|
||||
|
||||
depends_on 'sdl2'
|
||||
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 'SDL2_image.pc.in', '@prefix@', HOMEBREW_PREFIX
|
||||
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}", "--enable-imageio=no"
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue