summaryrefslogtreecommitdiff
path: root/x11/py-Tk/Makefile
blob: f8329ccff9e6a51e85883b56e654a45c942c67c2 (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
# $NetBSD: Makefile,v 1.12 1999/06/29 01:48:56 sakamoto Exp $
#

DISTNAME=	py152
PKGNAME=	py-Tk-1.5.2
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.python.org/pub/python/src/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.python.org/topics/tkinter/

DEPENDS+=	python-1.5.2:../../lang/python
DEPENDS+=	tk-8.0.5:../../x11/tk80
DEPENDS+=	tcl-8.0.5:../../lang/tcl80

DIST_SUBDIR=	python

USE_X11=	yes
WRKSRC=		${WRKDIR}/Python-1.5.2/Modules
ALL_TARGET=	default
EXTRACT_ELEMENTS=	Python-1.5.2/Modules/_tkinter.c \
			Python-1.5.2/Modules/tkappinit.c

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

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

do-configure:
	${SED} -e 's%@LOCALBASE@%${LOCALBASE}%g' \
	 -e 's%@X11BASE@%${X11BASE}%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}/_tkinter.so ${LOCALBASE}/lib/python1.5/lib-dynload
	${INSTALL_DATA} ${WRKSRC}/Setup.in ${PYTHON_CONFIGDIR}/Setup.tk

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