From: Samuel Martin Date: Tue, 22 Apr 2014 23:15:50 +0000 (+0200) Subject: opencv: add jasper support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cff18c2f347a46fb996808b6ac439e2a222aa189;p=buildroot.git opencv: add jasper support [Thomas: adjust Config.in help text as suggested by Yann E. Morin.] Signed-off-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- diff --git a/package/opencv/Config.in b/package/opencv/Config.in index 8d9599f657..bec9b9e50c 100644 --- a/package/opencv/Config.in +++ b/package/opencv/Config.in @@ -161,6 +161,16 @@ config BR2_PACKAGE_OPENCV_WITH_GTK depends on BR2_USE_MMU # libgtk2 -> glib2 select BR2_PACKAGE_LIBGTK2 +config BR2_PACKAGE_OPENCV_WITH_JASPER + bool "jpeg2000 support" + select BR2_PACKAGE_JASPER + help + Enable jpeg2000 support. + + Note: this does not use the libjasper bundled with opencv, + but uses the libjasper package installed system-wide by + Buildroot. + config BR2_PACKAGE_OPENCV_WITH_JPEG bool "jpeg support" select BR2_PACKAGE_JPEG diff --git a/package/opencv/opencv.mk b/package/opencv/opencv.mk index c3a6bea65b..1341d3208a 100644 --- a/package/opencv/opencv.mk +++ b/package/opencv/opencv.mk @@ -184,6 +184,13 @@ else OPENCV_CONF_OPT += -DWITH_GTK=OFF endif +ifeq ($(BR2_PACKAGE_OPENCV_WITH_JASPER),y) +OPENCV_CONF_OPT += -DWITH_JASPER=ON +OPENCV_DEPENDENCIES += jasper +else +OPENCV_CONF_OPT += -DWITH_JASPER=OFF +endif + ifeq ($(BR2_PACKAGE_OPENCV_WITH_JPEG),y) OPENCV_CONF_OPT += -DWITH_JPEG=ON OPENCV_DEPENDENCIES += jpeg