summaryrefslogtreecommitdiff
path: root/lang/python23-pth
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-11-17 00:11:43 +0000
committerrecht <recht@pkgsrc.org>2003-11-17 00:11:43 +0000
commitb4cdf58ec139bed8dc6c96902b90a371749c732d (patch)
tree16402c2d5ea3c6b919b8e2d2d525e777451c8785 /lang/python23-pth
parentd34d7fd06ecb803db88748a1284b16d452c7e10d (diff)
downloadpkgsrc-b4cdf58ec139bed8dc6c96902b90a371749c732d.tar.gz
The dl module isn't built for 64 bit archs and Darwin, so exclude it in
the PLIST for these.
Diffstat (limited to 'lang/python23-pth')
-rw-r--r--lang/python23-pth/Makefile11
-rw-r--r--lang/python23-pth/PLIST.common4
2 files changed, 12 insertions, 3 deletions
diff --git a/lang/python23-pth/Makefile b/lang/python23-pth/Makefile
index 83a65d7427d..35c1d892d12 100644
--- a/lang/python23-pth/Makefile
+++ b/lang/python23-pth/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:43 recht Exp $
#
DISTNAME= Python-2.3
@@ -46,6 +46,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-pth/PLIST.common b/lang/python23-pth/PLIST.common
index 2ae9a72973e..1fc2f0f45d7 100644
--- a/lang/python23-pth/PLIST.common
+++ b/lang/python23-pth/PLIST.common
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.1 2003/08/18 20:57:14 recht Exp $
+@comment $NetBSD: PLIST.common,v 1.2 2003/11/17 00:11:43 recht Exp $
bin/pydoc2p3
bin/python2p3
include/python2p3/Python.h
@@ -1133,7 +1133,7 @@ lib/python2p3/lib-dynload/cmath.so
lib/python2p3/lib-dynload/crypt.so
lib/python2p3/lib-dynload/datetime.so
lib/python2p3/lib-dynload/dbm.so
-lib/python2p3/lib-dynload/dl.so
+${DLMODULE}lib/python2p3/lib-dynload/dl.so
lib/python2p3/lib-dynload/fcntl.so
lib/python2p3/lib-dynload/grp.so
lib/python2p3/lib-dynload/itertools.so