diff options
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/Makefile | 11 | ||||
-rw-r--r-- | lang/python/files/Setup | 8 |
2 files changed, 12 insertions, 7 deletions
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: |