summaryrefslogtreecommitdiff
path: root/lang/python20
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-22 18:04:55 +0000
committerdrochner <drochner>2002-01-22 18:04:55 +0000
commit85d62b3e2fefd97efbaf327001585c83e8c4b790 (patch)
treedc6ae8eeeb58aab7244a477134bab7e2275ce836 /lang/python20
parentc8e7aaceb68ce573cb91d99791fa313081314a24 (diff)
downloadpkgsrc-85d62b3e2fefd97efbaf327001585c83e8c4b790.tar.gz
For transition, move lang/python/Makefile.inc here.
It doesn't work with anything but Python-2.0 anyway, and will die soon.
Diffstat (limited to 'lang/python20')
-rw-r--r--lang/python20/Makefile.inc42
1 files changed, 42 insertions, 0 deletions
diff --git a/lang/python20/Makefile.inc b/lang/python20/Makefile.inc
new file mode 100644
index 00000000000..ad0f8819e74
--- /dev/null
+++ b/lang/python20/Makefile.inc
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile.inc,v 1.1 2002/01/22 18:04:55 drochner Exp $
+#
+
+PY_VERSION= 2.0
+PY_DISTNAME= BeOpen-Python-${PY_VERSION}
+PY_MASTER_SITES=http://www.pythonlabs.com/products/python${PY_VERSION}/downloads/
+DIST_SUBDIR?= python
+
+PY_WRKSRC= ${WRKDIR}/Python-${PY_VERSION}/Modules
+PY_MODULES= Python-${PY_VERSION}/Modules
+
+PY_CONFIGDIR= ${LOCALBASE}/lib/python${PY_VERSION}/config
+PY_LIBPATH= lib/python${PY_VERSION}
+PY_LIBDIR= ${LOCALBASE}/${PY_LIBPATH}
+PY_SITEPATH= ${PY_LIBPATH}/site-packages
+PY_SITEPKG= ${PY_LIBDIR}/site-packages
+PY_PROG= ${LOCALBASE}/bin/python${PY_VERSION}
+PY_INCDIR= ${LOCALBASE}/include/python${PY_VERSION}
+
+PY_COMPILEDIR= ${PY_PROG} ${PY_LIBDIR}/compileall.py
+
+DEPENDS+= python20-${PY_VERSION}*:../../lang/python20
+
+ALL_TARGET?= default
+
+.if ${MACHINE_ARCH} == "sparc64"
+IGNORE="${PKGNAME} needs dynamic loading"
+.endif
+
+# Set PY_SETUP_SUBST to substitute "${variable}" for "@value@" in Setup.in.
+PY_SETUP_SUBST+= LOCALBASE=${LOCALBASE}
+PY_SETUP_SUBST+= X11BASE=${X11BASE}
+
+# This is used for standard modules shipped with Python but build as
+# separate packages.
+
+python-std-do-configure:
+ ${SED} ${PY_SETUP_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} \
+ ${FILESDIR}/Setup.in > ${WRKSRC}/Setup.in
+ ( cd ${WRKSRC} ;\
+ ${CP} ${PY_CONFIGDIR}/Makefile.pre.in .;\
+ ${MAKE} -f Makefile.pre.in boot)