1999-09-19 22:07:04 +02:00
|
|
|
# New ports collection makefile for: wxPython
|
|
|
|
# Date created: September 18, 1999
|
|
|
|
# Whom: nectar@FreeBSD.ORG
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-01-31 14:01:07 +01:00
|
|
|
PORTNAME= wxPython
|
2003-04-17 17:22:45 +02:00
|
|
|
PORTVERSION= 2.4.0.7
|
1999-09-19 22:07:04 +02:00
|
|
|
CATEGORIES= x11-toolkits python
|
2000-10-22 18:48:33 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-12-11 10:43:51 +01:00
|
|
|
MASTER_SITE_SUBDIR= wxpython
|
2002-01-31 14:01:07 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2003-01-15 19:44:23 +01:00
|
|
|
DISTNAME= ${PORTNAME}Src-${PORTVERSION}
|
1999-09-19 22:07:04 +02:00
|
|
|
|
2003-04-17 17:23:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.ORG
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Python bindings for the wxWindows/GTK GUI toolkit
|
1999-09-19 22:07:04 +02:00
|
|
|
|
2001-08-02 11:17:57 +02:00
|
|
|
LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel
|
2001-05-28 17:40:05 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl
|
1999-09-19 22:07:04 +02:00
|
|
|
|
2003-01-15 19:44:23 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/wxPython
|
|
|
|
|
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_PYTHON= yes
|
2002-06-21 12:28:35 +02:00
|
|
|
USE_PYDISTUTILS=yes
|
2003-06-05 02:02:41 +02:00
|
|
|
PYDISTUTILS_BUILDARGS= WX_CONFIG="${WX_CONFIG}"
|
2002-06-21 12:28:35 +02:00
|
|
|
DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
|
|
|
|
|
|
|
post-build:
|
2001-03-21 17:08:51 +01:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
|
|
|
|
.if !defined(DEBUG_FLAGS)
|
|
|
|
@find ${WRKSRC} -name "*.so" | xargs strip
|
|
|
|
.endif
|
|
|
|
|
2002-06-21 12:28:35 +02:00
|
|
|
post-install:
|
2001-03-21 17:08:51 +01:00
|
|
|
@${MKDIR} ${DEMO_DIR}
|
|
|
|
.for glob in *.py *.pyc
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/demo/${glob} ${DEMO_DIR}
|
|
|
|
.endfor
|
2002-01-31 14:01:07 +01:00
|
|
|
.for dir in bitmaps bmp_source data
|
|
|
|
@${MKDIR} ${DEMO_DIR}/${dir}
|
|
|
|
.for glob in *
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/demo/${dir}/${glob} ${DEMO_DIR}/${dir}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
1999-09-19 22:07:04 +02:00
|
|
|
|
2003-06-05 02:02:41 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${WX_CONFIG})
|
|
|
|
# detect if wxgtk was linked against gtk1 or gtk2
|
|
|
|
DECISION_GTK_1_OR_2!= ${WX_CONFIG} --static --libs | ${GREP} glib-2.0
|
|
|
|
.else
|
|
|
|
DECISION_GTK_1_OR_2= ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${DECISION_GTK_1_OR_2} != "")
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
CONFIGURE_ARGS+= --enable-gtk2
|
|
|
|
PYDISTUTILS_BUILDARGS+= WXPORT=gtk2
|
|
|
|
PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS} ${PYDISTUTILS_BUILDARGS}
|
|
|
|
.else
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|