pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/py-qwt-qt5 py-qwt-qt5: fix build on macOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/899386ceee0c
branches:  trunk
changeset: 379314:899386ceee0c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat May 14 17:00:25 2022 +0000

description:
py-qwt-qt5: fix build on macOS

diffstat:

 x11/py-qwt-qt5/Makefile |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 080e15db8d3f -r 899386ceee0c x11/py-qwt-qt5/Makefile
--- a/x11/py-qwt-qt5/Makefile   Sat May 14 16:47:48 2022 +0000
+++ b/x11/py-qwt-qt5/Makefile   Sat May 14 17:00:25 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2022/04/18 19:12:24 adam Exp $
+# $NetBSD: Makefile,v 1.6 2022/05/14 17:00:25 tnn Exp $
 
 VERSION=       1.02.00
 DISTNAME=      pyqt-qwt-${VERSION}
@@ -38,6 +38,17 @@
          --pyqt-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX}/PyQt5        \
          --verbose
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+# clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
+BUILDLINK_TRANSFORM+=  rm:-bundle
+post-install:
+       install_name_tool       \
+               -id ${PREFIX}/${PYSITELIB}/PyQt5/Qwt.so \
+         ${DESTDIR}${PREFIX}/${PYSITELIB}/PyQt5/Qwt.so
+.endif
+
 .include "../../lang/python/extension.mk"
 .include "../../x11/py-qt5/buildlink3.mk"
 .include "../../x11/py-sip/buildlink3.mk"



Home | Main Index | Thread Index | Old Index