From 6652c63aabcf89e304fbb663cd35f40c7e8884fc Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Fri, 21 Jun 2002 10:28:35 +0000 Subject: Catch up with latest developments in bsd.python.mk. Approved by: sobomax --- x11-toolkits/py-wxPython/Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'x11-toolkits/py-wxPython') diff --git a/x11-toolkits/py-wxPython/Makefile b/x11-toolkits/py-wxPython/Makefile index f994e354d7c4..f0dbcbb85604 100644 --- a/x11-toolkits/py-wxPython/Makefile +++ b/x11-toolkits/py-wxPython/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} -- cgit v1.2.3