summaryrefslogtreecommitdiff
path: root/misc/py-readline/Makefile
blob: 7307eced18bacf8b9be62fcc8bf5cee081b762a4 (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
# $NetBSD: Makefile,v 1.9 1999/04/14 05:47:45 tsarna Exp $
#

DISTNAME=	py152
PKGNAME=	py-readline-1.5.2
WRKSRC=		${WRKDIR}/Python-1.5.2/Modules
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.python.org/pub/python/src/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.python.org/doc/tut/interacting.html

DEPENDS+=	python-1.5.2:../../lang/python
DEPENDS+=	readline-2.2:../../devel/readline

DIST_SUBDIR=	python
ALL_TARGET=	default
EXTRACT_ELEMENTS=	Python-1.5.2/Modules/readline.c

PYTHON_CONFIGDIR=	${LOCALBASE}/lib/python1.5/config

.if ${MACHINE_ARCH} == "sparc64"
IGNORE="Needs dynamic loading"
.endif

do-configure:
	${SED} 's%@LOCALBASE@%${LOCALBASE}%g' ${FILESDIR}/Setup.in \
	 >${WRKSRC}/Setup.in
	(cd ${WRKSRC}; \
	 ${LN} -s ${PYTHON_CONFIGDIR}/Makefile.pre.in; \
	 ${MAKE} -f Makefile.pre.in boot)

do-install:
	${INSTALL_DATA} ${WRKSRC}/readline.so ${LOCALBASE}/lib/python1.5/lib-dynload

.include "../../mk/bsd.pkg.mk"