diff options
Diffstat (limited to 'x11-toolkits/py-wxPython24/Makefile')
-rw-r--r-- | x11-toolkits/py-wxPython24/Makefile | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/x11-toolkits/py-wxPython24/Makefile b/x11-toolkits/py-wxPython24/Makefile index 20d692f8d50..56d0c048f77 100644 --- a/x11-toolkits/py-wxPython24/Makefile +++ b/x11-toolkits/py-wxPython24/Makefile @@ -6,8 +6,7 @@ # PORTNAME= py-wxPython -PORTVERSION= 2.2.1 -PORTREVISION= 1 +PORTVERSION= 2.2.5 CATEGORIES= x11-toolkits python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= wxpython @@ -15,29 +14,31 @@ DISTNAME= wxPython-${PORTVERSION} MAINTAINER= nectar@FreeBSD.ORG +BUILD_DEPENDS= ${PYDISTUTILS} LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk USE_GMAKE= yes USE_NEWGCC= yes USE_PYTHON= yes USE_GTK= yes -INSTALLS_SHLIB= yes -MAKE_ENV= LN_S="${LN} -s" \ - CXX="${CXX}" \ - SYSCFLAGS="`${GTK_CONFIG} --cflags`" \ - SYSLFLAGS="`${GTK_CONFIG} --libs` -L${WRKSRC}/src" \ - _TARGETDIR="${PYTHON_SITELIBDIR}/wxPython" \ - _HELPERLIBDIR="${PREFIX}/lib" \ - WRKSRC="${WRKSRC}" -ALL_TARGET= default -INSTALL_TARGET= install-freebsd +MAKE_ENV= WX_CONFIG="${X11BASE}/bin/wx-config" +SETUP_ARGS= BUILD_GLCANVAS=0 +SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \ + ${SETUP_ARGS} +DEMO_DIR= ${PYTHON_SITELIBDIR:S/${LOCALBASE}/${PREFIX}/}/wxPython/demo -do-configure: - ${CP} ${FILESDIR}/build.local ${WRKSRC}/src/build.local - ${CP} ${FILESDIR}/build.local.stc ${WRKSRC}/contrib/stc/build.local - ${CP} ${FILESDIR}/build.local.ogl ${WRKSRC}/contrib/ogl/build.local - cd ${WRKSRC}/src && ../distrib/build.py - cd ${WRKSRC}/contrib/stc && ../../distrib/build.py - cd ${WRKSRC}/contrib/ogl && ../../distrib/build.py +do-build: + @${SETUP_CMD} 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 + @${MKDIR} ${DEMO_DIR} +.for glob in *.py *.pyc + @${INSTALL_DATA} ${WRKSRC}/demo/${glob} ${DEMO_DIR} +.endfor .include <bsd.port.mk> |