2013-01-10 20:05:43 +01:00
|
|
|
# Created by: ijliao
|
2004-08-04 05:33:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= matplotlib
|
2016-11-23 06:39:34 +01:00
|
|
|
PORTVERSION= 1.5.3
|
2016-11-23 09:09:40 +01:00
|
|
|
PORTREVISION= 1
|
2016-11-23 06:39:34 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2004-08-04 05:33:57 +02:00
|
|
|
CATEGORIES= math python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2006-04-30 00:34:30 +02:00
|
|
|
MAINTAINER= mainland@apeiron.net
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Plotting library uses a syntax familiar to MATLAB users
|
2004-08-04 05:33:57 +02:00
|
|
|
|
2014-09-28 09:48:34 +02:00
|
|
|
LICENSE= PSFL
|
|
|
|
|
2015-06-21 18:40:47 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY}
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
|
|
libpng.so:graphics/png \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libtcl86.so:lang/tcl86
|
2014-10-03 19:46:44 +02:00
|
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
2016-04-01 16:16:16 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}cycler>0:devel/py-cycler \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:devel/py-dateutil \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado
|
2005-01-01 23:19:36 +01:00
|
|
|
|
2016-11-23 06:39:34 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
|
2016-11-23 09:09:40 +01:00
|
|
|
USES= compiler:c++11-lib gettext pkgconfig python:2.7 shebangfix uniquefiles:dirs
|
2015-09-14 12:00:02 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
2010-07-29 06:01:50 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2015-10-29 14:47:20 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \
|
2016-10-30 12:39:42 +01:00
|
|
|
QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND
|
2013-06-05 16:28:24 +02:00
|
|
|
OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND
|
2015-09-14 12:00:02 +02:00
|
|
|
OPTIONS_SUB= yes
|
2013-06-05 16:28:24 +02:00
|
|
|
GTKBACKEND_DESC= GTK backend support
|
2015-09-14 12:00:02 +02:00
|
|
|
GTKBACKEND_VARS= GTK_BACKEND=True
|
|
|
|
GTKBACKEND_VARS_OFF= GTK_BACKEND=False
|
2016-02-15 01:56:30 +01:00
|
|
|
GTKBACKEND_USE= GNOME=gtk20,pygtk2,cairo,gdkpixbuf2
|
2013-06-05 16:28:24 +02:00
|
|
|
GTKAGGBACKEND_DESC= GTKAgg backend support
|
2016-02-15 01:56:30 +01:00
|
|
|
GTKAGGBACKEND_USE= GNOME=gtk20,pygtk2,cairo,gdkpixbuf2
|
2015-09-14 12:00:02 +02:00
|
|
|
GTKAGGBACKEND_VARS= GTKAGG_BACKEND=True
|
|
|
|
GTKAGGBACKEND_VARS_OFF= GTKAGG_BACKEND=False
|
2015-10-29 14:47:20 +01:00
|
|
|
QT4AGGBACKEND_DESC= Qt4Agg backend support
|
2017-02-04 14:37:15 +01:00
|
|
|
QT4AGGBACKEND_USES= pyqt:4
|
|
|
|
QT4AGGBACKEND_USE= PYQT=gui
|
2015-10-29 14:47:20 +01:00
|
|
|
QT4AGGBACKEND_VARS= QT4AGG_BACKEND=True
|
|
|
|
QT4AGGBACKEND_VARS_OFF= QT4AGG_BACKEND=False
|
2016-10-30 12:39:42 +01:00
|
|
|
QT5AGGBACKEND_DESC= Qt5Agg backend support
|
2017-02-04 14:37:15 +01:00
|
|
|
QT5AGGBACKEND_USES= pyqt:5
|
|
|
|
QT5AGGBACKEND_USE= PYQT=sip,widgets
|
2016-10-30 12:39:42 +01:00
|
|
|
QT5AGGBACKEND_VARS= QT5AGG_BACKEND=True
|
|
|
|
QT5AGGBACKEND_VARS_OFF= QT5AGG_BACKEND=False
|
2013-06-05 16:28:24 +02:00
|
|
|
TKAGGBACKEND_DESC= TKAgg backend support
|
2016-04-01 16:16:16 +02:00
|
|
|
TKAGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter
|
|
|
|
TKAGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter
|
2015-09-14 12:00:02 +02:00
|
|
|
TKAGGBACKEND_USES= tk:run
|
|
|
|
TKAGGBACKEND_VARS= TKAGG_BACKEND=True
|
|
|
|
TKAGGBACKEND_VARS_OFF= TKAGG_BACKEND=False
|
2013-06-05 16:28:24 +02:00
|
|
|
WXAGGBACKEND_DESC= WXAgg backend support
|
2015-09-14 12:00:02 +02:00
|
|
|
WXAGGBACKEND_USE= WX=2.8+
|
|
|
|
WXAGGBACKEND_CONFIGURE_ENV= WX_CONFIG="${WX_CONFIG}"
|
2015-10-07 14:50:42 +02:00
|
|
|
WXAGGBACKEND_VARS= WXAGG_BACKEND=True WX_COMPS=python:lib WX_UNICODE=yes
|
2015-09-14 12:00:02 +02:00
|
|
|
WXAGGBACKEND_VARS_OFF= WXAGG_BACKEND=False
|
2010-07-29 06:01:50 +02:00
|
|
|
|
2014-04-04 18:19:55 +02:00
|
|
|
PORTEXAMPLES= *
|
2010-07-29 06:01:50 +02:00
|
|
|
|
2015-09-14 12:00:02 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
2016-04-01 16:16:16 +02:00
|
|
|
GTKBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver
|
|
|
|
GTKAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver
|
|
|
|
QT4AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver
|
2016-10-30 12:39:42 +01:00
|
|
|
QT5AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver
|
2016-04-01 16:16:16 +02:00
|
|
|
TKAGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver
|
|
|
|
WXAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver
|
2010-07-29 06:01:50 +02:00
|
|
|
.endif
|
|
|
|
|
2010-07-30 17:53:09 +02:00
|
|
|
post-extract:
|
2015-10-07 14:50:42 +02:00
|
|
|
${FIND} ${WRKSRC} -name \*.py | ${XARGS} ${CHMOD} -x
|
2005-04-21 10:14:09 +02:00
|
|
|
|
2010-03-30 14:49:14 +02:00
|
|
|
post-patch:
|
2010-04-02 04:42:10 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
2010-07-29 06:01:50 +02:00
|
|
|
-e 's|%%TCL_INCLUDEDIR%%|${TCL_INCLUDEDIR}|g' \
|
|
|
|
-e 's|%%TK_INCLUDEDIR%%|${TK_INCLUDEDIR}|g' \
|
|
|
|
-e 's|%%TCL_LIBDIR%%|${TCL_LIBDIR}|g' \
|
|
|
|
-e 's|%%TK_LIBDIR%%|${TK_LIBDIR}|g' \
|
2014-02-20 18:07:02 +01:00
|
|
|
-e 's|%%TCL_VER%%|${TCL_SHLIB_VER}|g' \
|
|
|
|
-e 's|%%TK_VER%%|${TK_SHLIB_VER}|g' \
|
2010-04-02 04:42:10 +02:00
|
|
|
${WRKSRC}/setupext.py
|
2010-07-29 06:01:50 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%GTK_BACKEND%%|${GTK_BACKEND}|g' \
|
|
|
|
-e 's|%%GTKAGG_BACKEND%%|${GTKAGG_BACKEND}|g' \
|
2015-10-30 08:08:19 +01:00
|
|
|
-e 's|%%QT4AGG_BACKEND%%|${QT4AGG_BACKEND}|g' \
|
2016-10-30 12:39:42 +01:00
|
|
|
-e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \
|
2010-07-29 06:01:50 +02:00
|
|
|
-e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \
|
|
|
|
-e 's|%%WXAGG_BACKEND%%|${WXAGG_BACKEND}|g' \
|
|
|
|
${WRKSRC}/setup.cfg
|
2010-03-30 14:49:14 +02:00
|
|
|
|
2004-08-04 05:33:57 +02:00
|
|
|
post-install:
|
2015-10-29 14:47:20 +01:00
|
|
|
@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib -name '*.so' \
|
|
|
|
| ${XARGS} ${STRIP_CMD}
|
2015-09-14 12:00:02 +02:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-02-20 18:07:02 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
|
2007-03-13 10:57:36 +01:00
|
|
|
|
2013-01-10 20:05:43 +01:00
|
|
|
.include <bsd.port.mk>
|