diff options
author | reed <reed> | 2005-07-01 01:27:09 +0000 |
---|---|---|
committer | reed <reed> | 2005-07-01 01:27:09 +0000 |
commit | 5a8f6d921e707e3613c436cd5146d57c82637a29 (patch) | |
tree | 8d8346e694b0fdd477360a5ebdb3689612aec471 /x11/py-qt3-sip | |
parent | b51e126b38248280ef2cf4c5f563d88ae72e3a59 (diff) | |
download | pkgsrc-5a8f6d921e707e3613c436cd5146d57c82637a29.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/Makefile | 16 |
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 |