summaryrefslogtreecommitdiff
path: root/x11/py-qt3-sip
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2005-07-01 01:27:09 +0000
committerreed <reed@pkgsrc.org>2005-07-01 01:27:09 +0000
commitf79176322f02d924a0a21c381b39f9e49112f9e1 (patch)
tree8d8346e694b0fdd477360a5ebdb3689612aec471 /x11/py-qt3-sip
parent75173a08dc8a91364c3ba07c3caaebf5210f1c37 (diff)
downloadpkgsrc-f79176322f02d924a0a21c381b39f9e49112f9e1.tar.gz
Add support for Darwin.
And add support for Solaris. Sorry I commit both at same time. I forgot to commit this earlier.
Diffstat (limited to 'x11/py-qt3-sip')
-rw-r--r--x11/py-qt3-sip/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/x11/py-qt3-sip/Makefile b/x11/py-qt3-sip/Makefile
index 5984fde1b76..3c057b47498 100644
--- a/x11/py-qt3-sip/Makefile
+++ b/x11/py-qt3-sip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2005/06/01 18:03:30 jlam Exp $
+# $NetBSD: Makefile,v 1.17 2005/07/01 01:27:09 reed Exp $
#
DISTNAME= sip-4.2.1
@@ -28,8 +28,20 @@ PYTHON_VERSIONS_ACCEPTED= 24 23
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= CFLAGS_SHLIB=-fno-common
+CONFIGURE_ARGS+= LFLAGS_PLUGIN="-bundle -flat_namespace -undefined suppress"
+.else
CONFIGURE_ARGS+= CFLAGS_SHLIB=-fPIC
-CONFIGURE_ARGS+= LFLAGS_SHLIB=-shared
+.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc*)
+# gcc3 uses -mimpure-text to not pass -assert pure-text to the linker
+CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared -mimpure-text"
+.else
+CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared"
+.endif
+.endif
SUBST_CLASSES+= pyversfx
SUBST_STAGE.pyversfx= pre-configure