diff options
author | koobs <koobs@FreeBSD.org> | 2014-04-09 20:45:54 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2014-04-09 20:45:54 +0800 |
commit | 8ca75738dd99963e728d4ef317ca476a9d79ec19 (patch) | |
tree | 3ac4fe476946b67fa2ee02165551b30caf4efba8 /Mk/Uses | |
parent | c273739eab784ec03479a1e0e4f29b51250de935 (diff) | |
download | freebsd-ports-gnome-8ca75738dd99963e728d4ef317ca476a9d79ec19.tar.gz freebsd-ports-gnome-8ca75738dd99963e728d4ef317ca476a9d79ec19.tar.zst freebsd-ports-gnome-8ca75738dd99963e728d4ef317ca476a9d79ec19.zip |
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
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/pathfix.mk | 6 |
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 ; \ |