summaryrefslogtreecommitdiff
path: root/Mk/Uses/pathfix.mk
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2014-04-09 12:45:54 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2014-04-09 12:45:54 +0000
commitbcd640815db3a92822ec06aad4a53153fe6f7867 (patch)
tree3ac4fe476946b67fa2ee02165551b30caf4efba8 /Mk/Uses/pathfix.mk
parent- Add staging support (diff)
Mk/pathfix.mk: Support more pkgconfig libdir matches
Add support for matching additional pkgconfig libdir entries that were found in Python's Makefile.pre.in. It can also be used by other ports [1] by setting PATHFIX_MAKEFILEIN to the appropriate filename in ${WRKSRC}. If this file grows support for other pathfix'es beyond Makefile's and autoconf sources, it may be worth renaming PATHFIX_MAKEFILEIN in future to suit the broader scope. [1] Examples: devel/ptlib, graphics/zathura (thanks antoine) Reviewed by: antoine Approved by: antoine (exp-run) MFH: 2014Q2
Notes
Notes: svn path=/head/; revision=350694
Diffstat (limited to 'Mk/Uses/pathfix.mk')
-rw-r--r--Mk/Uses/pathfix.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk
index 80e5981644f3..660f2614ebed 100644
--- a/Mk/Uses/pathfix.mk
+++ b/Mk/Uses/pathfix.mk
@@ -1,7 +1,7 @@
# $FreeBSD$
#
-# Lookup in Makefile.in and configure for common incorrect paths and set them
-# to respect FreeBSD hier
+# Lookup common paths in Makefile.in, configure and similar files, and replace
+# their values to respect FreeBSD hier(7) for file installation.
#
# Feature: pathfix
# Usage: USES=pathfix
@@ -22,7 +22,9 @@ pathfix-pre-patch:
@${FIND} ${WRKSRC} -name "${PATHFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/locale|(prefix)/share/locale|g ; \
s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
+ s|[(]LIBDIR[)]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \
s|[{]libdir[}]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
+ s|[{]LIBDIR[}]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \
s|[(]datadir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
s|[(]prefix[)]/lib/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
s|[$$][(]localstatedir[)]/scrollkeeper|${SCROLLKEEPER_DIR}|g ; \