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

69 lines
1.7 KiB
Makefile
Raw Normal View History

# 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
CATEGORIES= x11-toolkits python
2000-10-22 18:48:33 +02:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
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}
2003-04-17 17:23:20 +02:00
MAINTAINER= ports@FreeBSD.ORG
COMMENT= Python bindings for the wxWindows/GTK GUI toolkit
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
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
USE_PYDISTUTILS=yes
PYDISTUTILS_BUILDARGS= WX_CONFIG="${WX_CONFIG}"
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
post-install:
@${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
.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>