pkgsrc/lang/python/Makefile
1999-01-17 00:23:40 +00:00

48 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.14 1999/01/17 00:23:40 frueauf Exp $
#
DISTNAME= pyth151
PKGNAME= python-1.5.1
WRKSRC= ${WRKDIR}/Python-1.5.1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.python.org/pub/python/src/
EXTRACT_SUFX= .tgz
DIST_SUBDIR= python
PATCH_SITES= http://www.python.org/1.5/patches-1.5.1/
PATCHFILES= freeze.1.txt _tkinter.1.txt configure.1.txt \
object.1.txt parsermodule.1.txt zlibmodule.1.txt \
string.1.txt bltinmodule.1.txt timemodule.1.txt \
fileobject.1.txt urllib.1.txt pcre.1.txt \
configure.2.txt imaplib.1.txt urllib.2.txt \
sgmllib.1.txt bltinmodule.2.txt ceval.1.txt gzip.1.txt \
imaplib.2.txt import.1.txt imaplib.3.txt \
stringobject.1.txt sgmllib.2.txt classobject.1.txt \
SocketServer.1.txt bltinmodule.3.txt longobject.1.txt \
stropmodule.1.txt
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.python.org/
GNU_CONFIGURE= yes
MAKE_FLAGS+= 'OPT=${CFLAGS}'
# Handle the module setup file:
# - disable a few broken modules on 64 bit platforms (nothing important)
# - handle machines with no dynamic loader
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
NO64BIT=\#
.endif
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "vax"
NOSHARED=\#
.endif
post-configure:
${SED} -e 's/@NO64BIT@/${NO64BIT}/' -e 's/@NOSHARED@/${NOSHARED}/' \
${FILESDIR}/Setup >${WRKSRC}/Modules/Setup
post-install:
strip ${PREFIX}/bin/python
.include "../../mk/bsd.pkg.mk"