summaryrefslogtreecommitdiff
path: root/lang/python/Makefile
blob: 9e97e690ad1b0459904f74c1ac9356c1e180d31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.13 1998/12/16 22:44:07 tsarna Exp $
#

DISTNAME=	pyth151
PKGNAME=	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/

WRKSRC=		${WRKDIR}/Python-1.5.1
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} == "mips" || ${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"