summaryrefslogtreecommitdiff
path: root/x11/py-wxWindows
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-18 10:50:42 +0000
committerdrochner <drochner>2002-01-18 10:50:42 +0000
commit9f6023ab9bdfc48ec157828715ae680c963c863c (patch)
treef166f0aa5c04d8bac34077110224e75b3de61e30 /x11/py-wxWindows
parent5752e7ebd1e12e800a4c447e40e23d08f87adaac (diff)
downloadpkgsrc-9f6023ab9bdfc48ec157828715ae680c963c863c.tar.gz
use buildlink files for python and wxGTK,
use variables from python framework afap
Diffstat (limited to 'x11/py-wxWindows')
-rw-r--r--x11/py-wxWindows/Makefile32
1 files changed, 14 insertions, 18 deletions
diff --git a/x11/py-wxWindows/Makefile b/x11/py-wxWindows/Makefile
index cbf1d77e42f..a5954e70153 100644
--- a/x11/py-wxWindows/Makefile
+++ b/x11/py-wxWindows/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2001/02/17 17:06:39 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2002/01/18 10:50:42 drochner Exp $
#
DISTNAME= wxPython-2.2.2
-PKGNAME= py-wxWindows-2.2.2
+PKGNAME= ${PYPKGPREFIX}-wxWindows-2.2.2
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxpython/}
@@ -10,29 +10,25 @@ MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://wxpython.org/
COMMENT= wxPython: Python bindings for wxWindows
-DEPENDS+= python>=2.0:../../lang/python
-DEPENDS+= wxGTK>=2.2.2:../../x11/wxGTK
-
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
-SITE_PKG= lib/python2.0/site-packages
-PYTHON_LIBDIR= ${LOCALBASE}/${SITE_PKG}
USE_GMAKE= yes
-BUILD_OPTS= BUILD_GLCANVAS=0
-
-do-build:
- (cd ${WRKSRC}; ${PREFIX}/bin/python setup.py ${BUILD_OPTS} build)
+PYTHON_VERSIONS_ACCEPTED= 20 # distutils problem with 21 and 22
+PYDISTUTILSPKG= yes
+PYSETUPBUILDARGS= BUILD_GLCANVAS=0
+PYBINMODULE= yes
-do-install:
- (cd ${WRKSRC}; ${PREFIX}/bin/python setup.py install)
+post-install:
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
- (cd ${PYTHON_LIBDIR}/wxPython; \
- ${PREFIX}/bin/python ${PREFIX}/lib/python2.0/compileall.py . ; \
- ${PREFIX}/bin/python -O ${PREFIX}/lib/python2.0/compileall.py . )
- (cd ${PREFIX}; ${FIND} ${SITE_PKG}/wxPython \
+ (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 ${SITE_PKG}/wxPython \
+ (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"