Skip to content

Commit

Permalink
Mk/Uses: Add new pathfix expression
Browse files Browse the repository at this point in the history
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
  • Loading branch information
5u623l20 committed Apr 9, 2022
1 parent 0379357 commit 5333878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Mk/Uses/pathfix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5333878

Please sign in to comment.