Created
February 13, 2016 21:09
-
-
Save AaronC81/ecfd395275568135860f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SdlImage < Formula | |
desc "Image file loading library" | |
homepage "https://www.libsdl.org/projects/SDL_image" | |
url "https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.tar.gz" | |
revision 1 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment