pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt5-qtbase x11/qt5-*: Fix install_name on Darwin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21322675d389
branches:  trunk
changeset: 310871:21322675d389
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Jul 26 02:16:05 2018 +0000

description:
x11/qt5-*: Fix install_name on Darwin

This should fix PR 53460.

diffstat:

 x11/qt5-qtbase/Makefile.common |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 9ace8d06e194 -r 21322675d389 x11/qt5-qtbase/Makefile.common
--- a/x11/qt5-qtbase/Makefile.common    Wed Jul 25 22:09:07 2018 +0000
+++ b/x11/qt5-qtbase/Makefile.common    Thu Jul 26 02:16:05 2018 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index