[6/9] package/darktable: add openjpeg optional dependency

Submitted by Romain Naour on March 5, 2017, 3:10 p.m.

Details

Message ID 20170305151004.2815-6-romain.naour@gmail.com
State New
Headers show

Commit Message

Romain Naour March 5, 2017, 3:10 p.m.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jeremy Rosen <jeremy.rosen@enst-bretagne.fr>
---
 package/darktable/darktable.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/package/darktable/darktable.mk b/package/darktable/darktable.mk
index 0e7aa9a..bd2d079 100644
--- a/package/darktable/darktable.mk
+++ b/package/darktable/darktable.mk
@@ -48,7 +48,6 @@  DARKTABLE_CONF_OPTS = \
 	-DUSE_MAP=OFF \
 	-DUSE_NLS=ON \
 	-DUSE_OPENCL=OFF \
-	-DUSE_OPENJPEG=OFF \
 	-DUSE_OPENMP=OFF \
 	-DUSE_OPENEXR=OFF
 
@@ -72,6 +71,13 @@  else
 DARKTABLE_CONF_OPTS += -DUSE_LIBSECRET=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_OPENJPEG),y)
+DARKTABLE_CONF_OPTS += -DUSE_OPENJPEG=ON
+DARKTABLE_DEPENDENCIES += openjpeg
+else
+DARKTABLE_CONF_OPTS += -DUSE_OPENJPEG=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_WEBP),y)
 DARKTABLE_CONF_OPTS += -DUSE_WEBP=ON
 DARKTABLE_DEPENDENCIES += webp