freebsd-ports/x11-toolkits/py-wxPython28/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wxPython
# Date created: September 18, 1999
# Whom: nectar@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= py-wxPython
2001-11-27 13:33:19 +01:00
PORTVERSION= 2.3.1
CATEGORIES= x11-toolkits python
2000-10-22 18:48:33 +02:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wxpython
DISTNAME= wxPython-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.ORG
BUILD_DEPENDS= ${PYDISTUTILS}
2001-08-02 11:17:57 +02:00
LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl
2001-05-28 22:10:54 +02:00
WX_CONFIG= ${X11BASE}/bin/wx-config
2000-10-05 08:42:57 +02:00
USE_GMAKE= yes
USE_NEWGCC= yes
USE_PYTHON= yes
USE_GTK= yes
2001-05-28 22:10:54 +02:00
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
2001-11-27 13:33:19 +01:00
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}
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:
2001-11-27 13:33:19 +01:00
@${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
@${MKDIR} ${DEMO_DIR}
.for glob in *.py *.pyc
@${INSTALL_DATA} ${WRKSRC}/demo/${glob} ${DEMO_DIR}
.endfor
.include <bsd.port.mk>