diff options
author | minskim <minskim@pkgsrc.org> | 2018-07-26 02:16:05 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2018-07-26 02:16:05 +0000 |
commit | bb067a375d7fdd93c206d4d87aa2fd0a772c983d (patch) | |
tree | 4cee1abe07d7a489a283b8ebf4038d5bd6458bba | |
parent | 5dc337e611423d3562c623fde2f0830703634e66 (diff) | |
download | pkgsrc-bb067a375d7fdd93c206d4d87aa2fd0a772c983d.tar.gz |
x11/qt5-*: Fix install_name on Darwin
This should fix PR 53460.
-rw-r--r-- | x11/qt5-qtbase/Makefile.common | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/x11/qt5-qtbase/Makefile.common b/x11/qt5-qtbase/Makefile.common index f35460c7f99..46c9c16219a 100644 --- a/x11/qt5-qtbase/Makefile.common +++ b/x11/qt5-qtbase/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.26 2018/06/19 07:21:23 adam Exp $ +# $NetBSD: Makefile.common,v 1.27 2018/07/26 02:16:05 minskim Exp $ # used by x11/qt5-mysql/Makefile # used by x11/qt5-odbc/Makefile # used by x11/qt5-psql/Makefile @@ -62,3 +62,15 @@ SCRIPTS_ENV+= HOME=${WRKDIR} do-configure: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QTPREFIX}/bin/qmake -o Makefile .endif + +.if ${OPSYS} == "Darwin" +.PHONY: fix-darwin-install-name +post-install: fix-darwin-install-name +fix-darwin-install-name: + ${FIND} ${DESTDIR}${PREFIX} -name "*.dylib" | \ + while read lib; do \ + libname=`basename $${lib}`; \ + libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \ + install_name_tool -id $${libdir}/$${libname} $${lib}; \ + done +.endif |