sdl_image: don't dlopen libraries at runtime.

Closes #7285.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Tommy Sparber 2016-11-28 09:28:20 +00:00 committed by Mike McQuaid
parent 57697e251e
commit 827e7d9651

View file

@ -3,7 +3,7 @@ class SdlImage < Formula
homepage "https://www.libsdl.org/projects/SDL_image" homepage "https://www.libsdl.org/projects/SDL_image"
url "https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz" url "https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz"
sha256 "0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699" sha256 "0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699"
revision 4 revision 5
bottle do bottle do
cellar :any cellar :any
@ -33,10 +33,19 @@ class SdlImage < Formula
ENV.universal_binary if build.universal? ENV.universal_binary if build.universal?
inreplace "SDL_image.pc.in", "@prefix@", HOMEBREW_PREFIX inreplace "SDL_image.pc.in", "@prefix@", HOMEBREW_PREFIX
system "./configure", "--prefix=#{prefix}", args = %W[
"--disable-dependency-tracking", --prefix=#{prefix}
"--disable-imageio", --disable-dependency-tracking
"--disable-sdltest" --disable-imageio
--disable-sdltest
]
args << "--disable-png-shared" if build.with? "libpng"
args << "--disable-jpg-shared" if build.with? "jpeg"
args << "--disable-tif-shared" if build.with? "libtiff"
args << "--disable-webp-shared" if build.with? "webp"
system "./configure", *args
system "make", "install" system "make", "install"
end end
end end