aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pdf2image.rb
diff options
context:
space:
mode:
authorJack Nagel2012-06-06 20:35:12 -0500
committerJack Nagel2012-07-01 12:41:00 -0500
commita2d4d9d832e60e2b007990f394b22e77b6dfa3ba (patch)
tree61d17f0eb86471a00b2bf117d13f067f73e372b8 /Library/Formula/pdf2image.rb
parent06c2ea036322bd1d05330711aa41273cddc77ede (diff)
downloadhomebrew-a2d4d9d832e60e2b007990f394b22e77b6dfa3ba.tar.bz2
Update formulae for XQuartz compatibility
Diffstat (limited to 'Library/Formula/pdf2image.rb')
-rw-r--r--Library/Formula/pdf2image.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/pdf2image.rb b/Library/Formula/pdf2image.rb
index 9667e6896..95a7587de 100644
--- a/Library/Formula/pdf2image.rb
+++ b/Library/Formula/pdf2image.rb
@@ -5,6 +5,8 @@ class Pdf2image < Formula
url 'http://pdf2image.googlecode.com/files/pdf2image-0.53-source.tar.gz'
md5 'df9614aa45284d2aa4c6e2596062eeb7'
+ depends_on :x11
+
def install
system "./configure", "--prefix=#{prefix}"
@@ -12,9 +14,8 @@ class Pdf2image < Formula
# http://code.google.com/p/pdf2json/issues/detail?id=2
inreplace "Makefile", "/man/", "/share/man/"
- # Add X11 libs manually; the Makefiles don't use LDFLAGS properly, so ENV.x11 doesn't work
- # - @adamv
- inreplace ["src/Makefile", "xpdf/Makefile"], "LDFLAGS =", "LDFLAGS=-L/usr/X11/lib"
+ # Add X11 libs manually; the Makefiles don't use LDFLAGS properly
+ inreplace ["src/Makefile", "xpdf/Makefile"], "LDFLAGS =", "LDFLAGS=-L#{MacOS.x11_prefix}/lib"
system "make"
system "make install"