From 8f32c2bbb94595d495179a8f57f3e8ec1b4ba3be Mon Sep 17 00:00:00 2001 From: tsarna Date: Sat, 15 May 1999 17:00:14 +0000 Subject: Take a stab at Zoularis support --- lang/python/Makefile | 11 +++++++++-- lang/python/files/Setup | 8 +++----- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'lang/python') diff --git a/lang/python/Makefile b/lang/python/Makefile index f4c2af9bcbc..bd61be9ad96 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 1999/04/14 04:51:27 tsarna Exp $ +# $NetBSD: Makefile,v 1.16 1999/05/15 17:00:14 tsarna Exp $ # DISTNAME= py152 @@ -27,15 +27,22 @@ SCRIPTS_ENV+= 'OPT=${CFLAGS}' # - disable a few broken modules on 64 bit platforms (nothing important) # - handle machines with no dynamic loader +.include "../../mk/bsd.prefs.mk" + .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" NO64BIT=\# .endif .if ${MACHINE_ARCH} == "sparc64" NOSHARED=\# .endif +.if ${OPSYS} == "SunOS" +MODADD=-I${ZOULARIS}/include -L${ZOULARIS}/lib -R${ZOULARIS}/lib +.endif post-configure: - ${SED} -e 's/@NO64BIT@/${NO64BIT}/' -e 's/@NOSHARED@/${NOSHARED}/' \ + ${SED} -e 's,@NO64BIT@,${NO64BIT},g' \ + -e 's,@NOSHARED@,${NOSHARED},g' \ + -e 's,@MODADD@,${MODADD},g' \ ${FILESDIR}/Setup >${WRKSRC}/Modules/Setup post-install: diff --git a/lang/python/files/Setup b/lang/python/files/Setup index 15f53f4a0a4..baf34663735 100644 --- a/lang/python/files/Setup +++ b/lang/python/files/Setup @@ -1,6 +1,6 @@ # -*- makefile -*- # -# $NetBSD: Setup,v 1.5 1999/04/14 04:51:27 tsarna Exp $ +# $NetBSD: Setup,v 1.6 1999/05/15 17:00:14 tsarna Exp $ # # The file Setup is used by the makesetup script to construct the files # Makefile and config.c, from Makefile.pre and config.c.in, @@ -371,9 +371,7 @@ dbm dbmmodule.c # dbm(3) may require -lndbm or similar #DB=/depot/sundry/src/berkeley-db/db.1.85 #DBPORT=$(DB)/PORT/irix.5.3 -bsddb bsddbmodule.c # -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a - - +bsddb bsddbmodule.c @MODADD@ # David Wayne Williams' soundex module (obsolete -- this will disappear!) soundex soundex.c @@ -409,7 +407,7 @@ cPickle cPickle.c # Andrew Kuchling's zlib module. # This require zlib 1.1.3 (or later). # See http://www.cdrom.com/pub/infozip/zlib/ -zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz +zlib zlibmodule.c @MODADD@ -lz # Example -- included for reference only: -- cgit v1.2.3