aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-10-04 23:47:26 -0700
committerCharlie Sharpsteen2011-10-04 23:47:26 -0700
commitaa92179fa666a063e90e5b5a2836b7f45a75d1d5 (patch)
tree44f544eda6c37150cbced149cf2015d36c75c8ee /Library
parent2840cc1eed9449366bb9750ef5ec0057b59c2a1b (diff)
downloadhomebrew-aa92179fa666a063e90e5b5a2836b7f45a75d1d5.tar.bz2
DiffPDF: Also fix library search paths
Related to #4257.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/diffpdf.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/diffpdf.rb b/Library/Formula/diffpdf.rb
index f0ea3bbea..d92592f81 100644
--- a/Library/Formula/diffpdf.rb
+++ b/Library/Formula/diffpdf.rb
@@ -14,7 +14,7 @@ class Diffpdf < Formula
depends_on 'poppler'
def patches
- # Fix header include path.
+ # Fix library and header search paths.
DATA
end
@@ -40,17 +40,18 @@ end
__END__
-The location of Poppler includes is hardcoded in the project file which causes
-builds to fail if Homebrew is not installed to /usr/local.
+The location of Poppler library/include paths is hardcoded in the project file
+which causes builds to fail if Homebrew is not installed to /usr/local.
diff --git a/diffpdf.pro b/diffpdf.pro
-index d561963..530d3d5 100644
+index d561963..0f9618f 100644
--- a/diffpdf.pro
+++ b/diffpdf.pro
-@@ -9,14 +9,4 @@ SOURCES += sequence_matcher.cpp
+@@ -8,15 +8,5 @@ HEADERS += sequence_matcher.hpp
+ SOURCES += sequence_matcher.cpp
SOURCES += main.cpp
RESOURCES += resources.qrc
- LIBS += -lpoppler-qt4
+-LIBS += -lpoppler-qt4
-exists($(HOME)/opt/poppler016/) {
- message(Using locally built Poppler library)
- INCLUDEPATH += $(HOME)/opt/poppler016/include/poppler/qt4
@@ -62,4 +63,5 @@ index d561963..530d3d5 100644
- INCLUDEPATH += /usr/local/include/poppler/qt4
- }
-}
-+INCLUDEPATH += HOMEBREW_PREFIX/include/poppler/qt4
++LIBS += -L$$quote(HOMEBREW_PREFIX/lib) -lpoppler-qt4
++INCLUDEPATH += $$quote(HOMEBREW_PREFIX/include/poppler/qt4)