2004-08-04 05:33:57 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: py-matplotlib
|
|
|
|
# Date created: Aug 4, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= matplotlib
|
2005-04-15 04:33:45 +02:00
|
|
|
PORTVERSION= 0.80
|
|
|
|
PORTREVISION= 0
|
2004-08-04 05:33:57 +02:00
|
|
|
CATEGORIES= math python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= A plotting library uses a syntax familiar to matlab users
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYNUMERIC} \
|
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
RUN_DEPENDS= ${PYNUMERIC} \
|
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
2005-01-01 23:19:36 +01:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
|
|
|
|
.endif
|
|
|
|
|
2005-04-13 09:26:36 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-08-04 05:33:57 +02:00
|
|
|
USE_PYTHON= 2.2+
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_GNOME= gtk20 pygtk2
|
|
|
|
CFLAGS+= -I${X11BASE}/include
|
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/share/py-${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
|
2005-04-18 23:03:41 +02:00
|
|
|
PLISTDIR= ${PYTHON_SITELIBDIR}/${PORTNAME} ${PYTHON_SITELIBDIR}/dateutil ${PYTHON_SITELIBDIR}/pytz \
|
|
|
|
${PYTHON_SITELIBDIR}/pylab* ${DATADIR}
|
2004-08-04 05:33:57 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PLISTDIR+= ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-13 09:26:36 +02:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "share/matplotlib" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s,share/matplotlib,share/py-matplotlib,g"
|
|
|
|
|
2004-08-04 05:33:57 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
.for dir in ${PLISTDIR}
|
|
|
|
@${FIND} ${dir} ! -type d | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${dir} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|