aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-10-21 23:19:57 +0800
committermat <mat@FreeBSD.org>2016-10-21 23:19:57 +0800
commit3432585b4743642027fc2b3af5eac2780fc2c4cd (patch)
tree2b400c5c9cd5d9a279adb976752389a1ec522514 /Mk
parent1760a8625d07e36aa917b065990cd46c0219833b (diff)
downloadfreebsd-ports-gnome-3432585b4743642027fc2b3af5eac2780fc2c4cd.tar.gz
freebsd-ports-gnome-3432585b4743642027fc2b3af5eac2780fc2c4cd.tar.zst
freebsd-ports-gnome-3432585b4743642027fc2b3af5eac2780fc2c4cd.zip
Allow more than one filename to be pathfixed.
PR: 213195 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D8093
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/pathfix.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk
index 0306f6ddb9b4..1319de88ccae 100644
--- a/Mk/Uses/pathfix.mk
+++ b/Mk/Uses/pathfix.mk
@@ -18,7 +18,7 @@ IGNORE= USES=pathfix does not require args
PATHFIX_CMAKELISTSTXT?= CMakeLists.txt
.if ${USES:Mautoreconf*}
-PATHFIX_MAKEFILEIN?= Makefile.am
+PATHFIX_MAKEFILEIN?= Makefile.am Makefile.in
.else
PATHFIX_MAKEFILEIN?= Makefile.in
.endif
@@ -27,7 +27,8 @@ PATHFIX_WRKSRC?= ${WRKSRC}
_USES_patch+= 190:pathfix
pathfix:
.if ${USES:Mcmake*}
- @${FIND} ${PATHFIX_WRKSRC} -name "${PATHFIX_CMAKELISTSTXT}" -type f | ${XARGS} ${REINPLACE_CMD} -e \
+.for file in ${PATHFIX_CMAKELISTSTXT}
+ @${FIND} ${PATHFIX_WRKSRC} -name "${file}" -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|[{]CMAKE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \
s|[{]INSTALL_LIB_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \
s|[{]INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \
@@ -38,8 +39,10 @@ pathfix:
s|[{]LIBRARY_INSTALL_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \
s|[{]libdir[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \
s|lib/pkgconfig|libdata/pkgconfig|g'
+.endfor
.else
- @${FIND} ${PATHFIX_WRKSRC} -name "${PATHFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} -e \
+.for file in ${PATHFIX_MAKEFILEIN}
+ @${FIND} ${PATHFIX_WRKSRC} -name "${file}" -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 ; \
@@ -53,6 +56,7 @@ pathfix:
s|[[:<:]]lib/pkgconfig|libdata/pkgconfig|g; \
s|[$$][(]localstatedir[)]/scrollkeeper|${SCROLLKEEPER_DIR}|g ; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g'
+.endfor
.endif
.endif