aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>2020-07-27 15:00:22 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-07-27 16:55:46 +0200
commit4b6ec5644430f56c990b0a4892f67c64886ef350 (patch)
tree0725fd7b17e7ff887095c2d80f3dc151bcf1f580
parentf202b2369190661cb224e5871afc30bf5d85dce1 (diff)
downloadbuildroot-4b6ec5644430f56c990b0a4892f67c64886ef350.tar.gz
buildroot-4b6ec5644430f56c990b0a4892f67c64886ef350.tar.bz2
package/python-matplotlib: add QT5 support
python-matplotlib may be used in qt5 application. This patch add option to enable qt5. Since this backend is automatically enabled when pyqt5 is detected, list dependencies is simply an updated (no enable/disable options). Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/python-matplotlib/Config.in12
-rw-r--r--package/python-matplotlib/python-matplotlib.mk4
2 files changed, 16 insertions, 0 deletions
diff --git a/package/python-matplotlib/Config.in b/package/python-matplotlib/Config.in
index e6ed8cda2f..cfa0bc30c3 100644
--- a/package/python-matplotlib/Config.in
+++ b/package/python-matplotlib/Config.in
@@ -23,6 +23,18 @@ config BR2_PACKAGE_PYTHON_MATPLOTLIB
https://matplotlib.org/
+if BR2_PACKAGE_PYTHON_MATPLOTLIB
+
+config BR2_PACKAGE_PYTHON_MATPLOTLIB_QT
+ bool "qt display"
+ depends on BR2_PACKAGE_QT5 # python-pyqt5
+ select BR2_PACKAGE_PYTHON_PYQT5
+ select BR2_PACKAGE_QT5BASE
+ select BR2_PACKAGE_QT5BASE_FONTCONFIG
+ select BR2_PACKAGE_QT5BASE_WIDGETS
+
+endif
+
comment "python-matplotlib needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-matplotlib/python-matplotlib.mk b/package/python-matplotlib/python-matplotlib.mk
index 7082637d09..8d00ac8a07 100644
--- a/package/python-matplotlib/python-matplotlib.mk
+++ b/package/python-matplotlib/python-matplotlib.mk
@@ -13,4 +13,8 @@ PYTHON_MATPLOTLIB_DEPENDENCIES = host-pkgconf freetype host-python-numpy \
libpng python-cycler
PYTHON_MATPLOTLIB_SETUP_TYPE = setuptools
+ifeq ($(BR2_PACKAGE_PYTHON_MATPLOTLIB_QT),y)
+PYTHON_MATPLOTLIB_DEPENDENCIES += python-pyqt5
+endif
+
$(eval $(python-package))