summaryrefslogtreecommitdiff
path: root/x11/py-wxWindows/Makefile
blob: 7e81565b37531d829598eca308ca69f958993736 (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
# $NetBSD: Makefile,v 1.10 2002/03/13 17:37:59 fredb Exp $
#

DISTNAME=	wxPython-2.2.2
PKGNAME=	${PYPKGPREFIX}-wxWindows-2.2.2
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=wxpython/}

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://wxpython.org/
COMMENT=	wxPython: Python bindings for wxWindows

PLIST_SRC=      ${WRKDIR}/.PLIST_SRC

USE_GMAKE=	yes

PYTHON_VERSIONS_ACCEPTED=	20 # distutils problem with 21 and 22
PYDISTUTILSPKG=	yes
PYSETUPBUILDARGS=	BUILD_GLCANVAS=0
PYBINMODULE=	yes

post-install:
	${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
	(cd ${PREFIX}/${PYSITELIB}/wxPython; \
	${PYTHONBIN} ${PREFIX}/${PYLIB}/compileall.py . ; \
	${PYTHONBIN} -O ${PREFIX}/${PYLIB}/compileall.py . )
	(cd ${PREFIX}; ${FIND} ${PYSITELIB}/wxPython \
		-type f -print >>${PLIST_SRC})
	(cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/wxPython \
		-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})

.include "../../x11/wxGTK/buildlink.mk"
.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"