aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-18 22:39:01 -0500
committerJack Nagel2014-05-18 22:42:35 -0500
commita0499bc44a54acefdd21fffcf0d06b74488f96eb (patch)
treeafa1d471a489cbe18b222e5a5b4515bdd47ae5c6 /Library
parent1672a8f5ce578dffefc95059e5705ab4702ac785 (diff)
downloadhomebrew-a0499bc44a54acefdd21fffcf0d06b74488f96eb.tar.bz2
poppler: simplify build
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/poppler.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/Library/Formula/poppler.rb b/Library/Formula/poppler.rb
index 9b60b7087..217ac4c75 100644
--- a/Library/Formula/poppler.rb
+++ b/Library/Formula/poppler.rb
@@ -33,17 +33,21 @@ class Poppler < Formula
end
def install
- if build.with? 'qt4'
- ENV['POPPLER_QT4_CFLAGS'] = `#{HOMEBREW_PREFIX}/bin/pkg-config QtCore QtGui --libs`.chomp
- ENV.append 'LDFLAGS', "-Wl,-F#{HOMEBREW_PREFIX}/lib"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --enable-xpdf-headers
+ --enable-poppler-glib
+ --disable-gtk-test
+ ]
+
+ if build.with? "qt4"
+ args << "--enable-poppler-qt4"
+ else
+ args << "--disable-poppler-qt4"
end
- args = ["--disable-dependency-tracking", "--prefix=#{prefix}", "--enable-xpdf-headers",
- "--enable-poppler-glib"]
- # Explicitly disable Qt if not requested because `POPPLER_QT4_CFLAGS` won't
- # be set and the build will fail.
- args << ( build.with?('qt4') ? '--enable-poppler-qt4' : '--disable-poppler-qt4' )
- args << ( build.with?('lcms2') ? '--enable-cms=lcms2' : '' )
+ args << "--enable-cms=lcms2" if build.with? "lcms2"
system "./configure", *args
system "make install"