From 7a9d0159285d0ca9fc07c4eac3d7a4ae7946d581 Mon Sep 17 00:00:00 2001 From: recht Date: Mon, 17 Nov 2003 00:11:43 +0000 Subject: The dl module isn't built for 64 bit archs and Darwin, so exclude it in the PLIST for these. --- lang/python23/Makefile | 11 ++++++++++- lang/python23/PLIST.common | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'lang/python23') diff --git a/lang/python23/Makefile b/lang/python23/Makefile index 19147992d78..74f37562f48 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2003/11/12 03:39:40 jschauma Exp $ +# $NetBSD: Makefile,v 1.10 2003/11/17 00:11:44 recht Exp $ # DISTNAME= Python-2.3 @@ -43,6 +43,15 @@ PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS} PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//} .endif +# the dl module isn't built for 64 bit archs and Darwin +.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" \ + || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64" \ + || ${OPSYS} == "Darwin" +PLIST_SUBST+= DLMODULE="@comment " +.else +PLIST_SUBST+= DLMODULE= +.endif + .if ${OPSYS} != "NetBSD" .include "../../databases/db/buildlink2.mk" CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/include/db2 diff --git a/lang/python23/PLIST.common b/lang/python23/PLIST.common index 7413da53c54..f650c4e86fd 100644 --- a/lang/python23/PLIST.common +++ b/lang/python23/PLIST.common @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST.common,v 1.1 2003/08/18 20:57:12 recht Exp $ +@comment $NetBSD: PLIST.common,v 1.2 2003/11/17 00:11:44 recht Exp $ bin/pydoc2.3 bin/python2.3 include/python2.3/Python.h @@ -1133,7 +1133,7 @@ lib/python2.3/lib-dynload/cmath.so lib/python2.3/lib-dynload/crypt.so lib/python2.3/lib-dynload/datetime.so lib/python2.3/lib-dynload/dbm.so -lib/python2.3/lib-dynload/dl.so +${DLMODULE}lib/python2.3/lib-dynload/dl.so lib/python2.3/lib-dynload/fcntl.so lib/python2.3/lib-dynload/grp.so lib/python2.3/lib-dynload/itertools.so -- cgit v1.2.3