aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-04-09 17:15:43 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-04-09 17:20:29 +0000
commit5333878076d5416fe363f167fd722e0b51ac7369 (patch)
treead21bea9249f807fbb4a30356a5ec026b707e1bb
parent03793575ebc03913ea8455f1d634b7667b2959ad (diff)
downloadports-5333878076d5416fe363f167fd722e0b51ac7369.tar.gz
ports-5333878076d5416fe363f167fd722e0b51ac7369.zip
Mk/Uses: Add new pathfix expression
While working on Apertium ecosystem it looks like their entire 500+ applications uses hardcoded pkgconfigdir with (prefix)/share/pkgconfig. This patch adds that regex for easier porting for the huge pile of ports. Reviewed by: tcberner Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D34780
-rw-r--r--Mk/Uses/pathfix.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk
index 07ede991db54..7593fc923302 100644
--- a/Mk/Uses/pathfix.mk
+++ b/Mk/Uses/pathfix.mk
@@ -52,6 +52,7 @@ pathfix:
s|[(]datadir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
s|[{]datadir[}]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
s|[(]prefix[)]/lib/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
+ s|[(]prefix[)]/share/pkgconfig|(prefix)/libdata/pkgconfig|g ; \
s|[[:<:]]lib/pkgconfig|libdata/pkgconfig|g; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g'
.endfor