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
|
2008-05-07 06:43:35 +02:00
|
|
|
PORTVERSION= 0.91.2
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2004-08-04 05:33:57 +02:00
|
|
|
CATEGORIES= math python
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2004-08-04 05:33:57 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2006-04-30 00:34:30 +02:00
|
|
|
MAINTAINER= mainland@apeiron.net
|
2004-08-04 05:33:57 +02:00
|
|
|
COMMENT= A plotting library uses a syntax familiar to matlab users
|
|
|
|
|
2008-05-07 06:43:35 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
2008-04-11 10:27:14 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:${PORTSDIR}/devel/py-dateutil \
|
2008-05-07 06:43:35 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
|
2004-08-04 05:33:57 +02:00
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg
|
2006-11-19 09:38:57 +01:00
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2008-05-07 06:43:35 +02:00
|
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
2004-08-04 05:33:57 +02:00
|
|
|
${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
|
|
|
|
|
2007-03-13 10:57:36 +01:00
|
|
|
USE_PYTHON= yes
|
2004-08-04 05:33:57 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_GNOME= gtk20 pygtk2
|
2007-04-03 00:56:15 +02:00
|
|
|
USE_TCL_RUN= yes
|
|
|
|
USE_TK_RUN= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2004-08-04 05:33:57 +02:00
|
|
|
|
2007-08-04 13:41:30 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
2005-04-21 10:14:09 +02:00
|
|
|
|
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"
|
2007-03-13 10:57:36 +01:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e s,%%LOCALBASE%%,${LOCALBASE}, \
|
|
|
|
-e s,%%TCL_INCLUDEDIR%%,${TCL_INCLUDEDIR}, \
|
|
|
|
-e s,%%TK_INCLUDEDIR%%,${TK_INCLUDEDIR}, \
|
|
|
|
-e s,%%USE_TK%%,${USE_TK}, \
|
|
|
|
-e s,%%USE_TCL%%,${USE_TCL}, \
|
|
|
|
${WRKSRC}/setupext.py
|
2005-04-13 09:26:36 +02:00
|
|
|
|
2008-05-07 06:43:35 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2004-08-04 05:33:57 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
2008-05-07 06:43:35 +02:00
|
|
|
.endif
|
2007-03-13 10:57:36 +01:00
|
|
|
|
2008-05-07 06:43:35 +02:00
|
|
|
.include <bsd.port.mk>
|