pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/py-qt3-sip Add support for Darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f16e204b178c
branches:  trunk
changeset: 496505:f16e204b178c
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri Jul 01 01:27:09 2005 +0000

description:
Add support for Darwin.

And add support for Solaris. Sorry I commit both at same time.
I forgot to commit this earlier.

diffstat:

 x11/py-qt3-sip/Makefile |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r d2aa839369f9 -r f16e204b178c x11/py-qt3-sip/Makefile
--- a/x11/py-qt3-sip/Makefile   Fri Jul 01 01:25:49 2005 +0000
+++ b/x11/py-qt3-sip/Makefile   Fri Jul 01 01:27:09 2005 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index