# ex:ts=8 # Ports collection makefile for: py-matplotlib # Date created: Aug 4, 2004 # Whom: ijliao # # $FreeBSD$ # PORTNAME= matplotlib PORTVERSION= 0.99.1.1 CATEGORIES= math python MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-0.99.1/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PORTNAME}-0.99.1.2.tar.gz MAINTAINER= mainland@apeiron.net COMMENT= A plotting library uses a syntax familiar to matlab users BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:${PORTSDIR}/devel/py-dateutil \ ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \ ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \ ${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ png.6:${PORTSDIR}/graphics/png RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter .if defined(PACKAGE_BUILDING) BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} .endif USE_PYTHON= 2.4+ USE_PYDISTUTILS= yes USE_GNOME= gtk20 pygtk2 USE_TCL_RUN= yes USE_TK_RUN= yes CFLAGS+= -I${LOCALBASE}/include WRKSRC= ${WRKDIR}/${PORTNAME}-0.99.1.1 WANT_WX= 2.6 .include .if defined(WITH_WXPYTHON) || ${HAVE_WX:Mpython} != "" USE_WX= 2.6 WX_COMPS= python CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}" .endif EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} post-patch: ${REINPLACE_CMD} -e 's|png_infopp_NULL|NULL|' \ ${WRKSRC}/src/_png.cpp ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/setupext.py .if !defined(NOPORTEXAMPLES) post-install: @${MKDIR} ${EXAMPLESDIR} ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR} .endif .include