summaryrefslogtreecommitdiff
path: root/x11-toolkits/py-wxPython24/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2002-06-21 10:28:35 +0000
committerThomas Gellekum <tg@FreeBSD.org>2002-06-21 10:28:35 +0000
commit6652c63aabcf89e304fbb663cd35f40c7e8884fc (patch)
tree4011c0c203e16a26ef3fe96e2ed5aa1437cc5df2 /x11-toolkits/py-wxPython24/Makefile
parentText::EtText, a simple plain-text markup to HTML convertor. (diff)
Catch up with latest developments in bsd.python.mk.
Approved by: sobomax
Diffstat (limited to 'x11-toolkits/py-wxPython24/Makefile')
-rw-r--r--x11-toolkits/py-wxPython24/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/x11-toolkits/py-wxPython24/Makefile b/x11-toolkits/py-wxPython24/Makefile
index f994e354d7c4..f0dbcbb85604 100644
--- a/x11-toolkits/py-wxPython24/Makefile
+++ b/x11-toolkits/py-wxPython24/Makefile
@@ -14,7 +14,6 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sobomax@FreeBSD.ORG
-BUILD_DEPENDS= ${PYDISTUTILS}
LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl
@@ -23,23 +22,18 @@ WX_CONFIG= ${X11BASE}/bin/wx-config
USE_GMAKE= yes
USE_NEWGCC= yes
USE_PYTHON= yes
+USE_PYDISTUTILS=yes
USE_GTK= yes
MAKE_ENV= WX_CONFIG="${WX_CONFIG}"
-SETUP_ARGS= WX_CONFIG="${WX_CONFIG}"
-SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \
- ${SETUP_ARGS}
-DEMO_DIR= ${PYTHON_SITELIBDIR:S/${LOCALBASE}/${PREFIX}/}/wxPython/demo
-PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}
-
-do-build:
- @${SETUP_CMD} build
+DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
+
+post-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
.if !defined(DEBUG_FLAGS)
@find ${WRKSRC} -name "*.so" | xargs strip
.endif
-do-install:
- @${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
+post-install:
@${MKDIR} ${DEMO_DIR}
.for glob in *.py *.pyc
@${INSTALL_DATA} ${WRKSRC}/demo/${glob} ${DEMO_DIR}