Skip to content

Instantly share code, notes, and snippets.

@AaronC81
Created February 13, 2016 21:09
Show Gist options
  • Save AaronC81/ecfd395275568135860f to your computer and use it in GitHub Desktop.
Save AaronC81/ecfd395275568135860f to your computer and use it in GitHub Desktop.
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