aboutsummaryrefslogtreecommitdiff
path: root/lang/python23/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1999-07-15 11:59:41 +0000
committerThomas Gellekum <tg@FreeBSD.org>1999-07-15 11:59:41 +0000
commitca38b9f4d48b3110ea94e142fb9d770b6607d9f1 (patch)
treef02462fdef7b0d25d3018eac797442d67e41f11a /lang/python23/Makefile
parenta90627b9d629ee0c2d72e70cf88f49119130cb2d (diff)
downloadports-ca38b9f4d48b3110ea94e142fb9d770b6607d9f1.tar.gz
ports-ca38b9f4d48b3110ea94e142fb9d770b6607d9f1.zip
Fix package building when you're leaving out optional parts, like Tk.
PR: 12648
Notes
Notes: svn path=/head/; revision=20214
Diffstat (limited to 'lang/python23/Makefile')
-rw-r--r--lang/python23/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/python23/Makefile b/lang/python23/Makefile
index 1cd2cd9ab1fd..a95a5e1ee141 100644
--- a/lang/python23/Makefile
+++ b/lang/python23/Makefile
@@ -3,7 +3,7 @@
# Date created: 08 August 1995
# Whom: jkh
#
-# $Id: Makefile,v 1.49 1999/05/19 08:47:50 tg Exp $
+# $Id: Makefile,v 1.50 1999/07/06 13:27:35 tg Exp $
#
DISTNAME= py152
@@ -38,6 +38,7 @@ WITH_TK?= yes
.if defined(WITH_TK) && $(WITH_TK) == yes
TK_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80
SETUP_LOCAL= Setup.tk
+PLIST_TK= ${PKGDIR}/PLIST.tk
.endif
#
@@ -60,7 +61,7 @@ CONFIGURE_ENV+= LDFLAGS="-pthread ${LDFLAGS}"
#
.if exists(/usr/src/contrib/libgmp/gmp-impl.h)
SETUP_LOCAL+= Setup.gmp
-PLIST_GMP= lib/python1.5/lib-dynload/mpzmodule.so
+PLIST_GMP= ${PKGDIR}/PLIST.gmp
.endif
#
@@ -69,6 +70,9 @@ PLIST_GMP= lib/python1.5/lib-dynload/mpzmodule.so
# while extending or managing Python.
#
WITH_TOOLS?= yes
+.if defined(WITH_TOOLS) && ${WITH_TOOLS} == yes
+PLIST_TOOLS= ${PKGDIR}/PLIST.Tools
+.endif
post-extract:
cd ${WRKSRC}/Lib && ${SH} ${FILESDIR}/plat-freebsd4.sh
@@ -95,7 +99,7 @@ pre-install:
${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/* \
${PREFIX}/lib/python1.5/${platform}/
.endfor
- @${ECHO} ${PLIST_GMP} | sort -r -o ${PLIST} - ${PKGDIR}/PLIST
+ @sort -r -o ${PLIST} ${PLIST_TK} ${PLIST_GMP} ${PLIST_TOOLS} ${PKGDIR}/PLIST
post-install:
strip ${PREFIX}/bin/python