pdf2image: force std

Superenv is stripping flags this needs to compile.
Based on a comment, this formula is using flags in a slightly non-standard way.

Fixes Homebrew/homebrew#16186.
This commit is contained in:
Adam Vandenberg 2013-01-17 17:07:50 -08:00
parent 3b67e60f88
commit 45648b8d08

View file

@ -7,6 +7,9 @@ class Pdf2image < Formula
depends_on :x11
# superenv strips flags that are needed for the build to succeed
env :std
def install
system "./configure", "--prefix=#{prefix}"
@ -15,7 +18,8 @@ class Pdf2image < Formula
inreplace "Makefile", "/man/", "/share/man/"
# Add X11 libs manually; the Makefiles don't use LDFLAGS properly
inreplace ["src/Makefile", "xpdf/Makefile"], "LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
inreplace ["src/Makefile", "xpdf/Makefile"],
"LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
system "make"
system "make install"