From cff18c2f347a46fb996808b6ac439e2a222aa189 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Wed, 23 Apr 2014 01:15:50 +0200 Subject: [PATCH] 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 --- package/opencv/Config.in | 10 ++++++++++ package/opencv/opencv.mk | 7 +++++++ 2 files changed, 17 insertions(+) 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 -- 2.30.2