diff options
author | pi <pi@FreeBSD.org> | 2016-10-30 19:39:42 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-10-30 19:39:42 +0800 |
commit | 9632faeb4b085579e8966ccd346c5198978d1f30 (patch) | |
tree | 99e45e1271b573702bc5d689c76b1ada763a3d44 /math/py-matplotlib/Makefile | |
parent | cf2916ed44dbc0456f652b2135a6945519be4b95 (diff) | |
download | freebsd-ports-gnome-9632faeb4b085579e8966ccd346c5198978d1f30.tar.gz freebsd-ports-gnome-9632faeb4b085579e8966ccd346c5198978d1f30.tar.zst freebsd-ports-gnome-9632faeb4b085579e8966ccd346c5198978d1f30.zip |
math/py-matplotlib: Add Qt5Agg backend option
- Now that there are Qt5 python bindings in ports, matplotlib can
be configured to use them.
PR: 212763
Submitted by: Matthieu Volat <mazhe@alkumuna.eu>
Approved by: mainland@apeiron.net (maintainer)
Diffstat (limited to 'math/py-matplotlib/Makefile')
-rw-r--r-- | math/py-matplotlib/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/math/py-matplotlib/Makefile b/math/py-matplotlib/Makefile index 216c6e62fc71..513fc01d1143 100644 --- a/math/py-matplotlib/Makefile +++ b/math/py-matplotlib/Makefile @@ -29,7 +29,7 @@ USE_PYTHON= autoplist distutils CFLAGS+= -I${LOCALBASE}/include OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \ - TKAGGBACKEND WXAGGBACKEND + QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND OPTIONS_SUB= yes GTKBACKEND_DESC= GTK backend support @@ -45,6 +45,11 @@ QT4AGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.8.5:x11-toolkits/ QT4AGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.8.5:x11-toolkits/py-qt4-gui QT4AGGBACKEND_VARS= QT4AGG_BACKEND=True QT4AGGBACKEND_VARS_OFF= QT4AGG_BACKEND=False +QT5AGGBACKEND_DESC= Qt5Agg backend support +QT5AGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:devel/py-sip ${PYTHON_PKGNAMEPREFIX}qt5-widgets>=5.5.1:x11-toolkits/py-qt5-widgets +QT5AGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:devel/py-sip ${PYTHON_PKGNAMEPREFIX}qt5-widgets>=5.5.1:x11-toolkits/py-qt5-widgets +QT5AGGBACKEND_VARS= QT5AGG_BACKEND=True +QT5AGGBACKEND_VARS_OFF= QT5AGG_BACKEND=False TKAGGBACKEND_DESC= TKAgg backend support TKAGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter TKAGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter @@ -63,6 +68,7 @@ PORTEXAMPLES= * GTKBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver GTKAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver QT4AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver +QT5AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver TKAGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver WXAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver .endif @@ -82,6 +88,7 @@ post-patch: ${REINPLACE_CMD} -e 's|%%GTK_BACKEND%%|${GTK_BACKEND}|g' \ -e 's|%%GTKAGG_BACKEND%%|${GTKAGG_BACKEND}|g' \ -e 's|%%QT4AGG_BACKEND%%|${QT4AGG_BACKEND}|g' \ + -e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \ -e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \ -e 's|%%WXAGG_BACKEND%%|${WXAGG_BACKEND}|g' \ ${WRKSRC}/setup.cfg |