aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jörg Krause <joerg.krause@embedded.rocks>2021-02-25 11:53:55 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-03-01 22:20:36 +0100
commit3a80e190092fe08da816c4adcf0802651eb0c274 (patch)
treea565faad99b73645a6a6a3144a0e7b6b809b5569
parent8c017f37773079d83acf147e0517af538bd3514b (diff)
downloadbuildroot-3a80e190092fe08da816c4adcf0802651eb0c274.tar.gz
buildroot-3a80e190092fe08da816c4adcf0802651eb0c274.tar.bz2
package/gerbera: add optional duktape dependency
Duktape allows the user to enable JavaScript scripting support. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/gerbera/Config.in3
-rw-r--r--package/gerbera/gerbera.mk11
2 files changed, 11 insertions, 3 deletions
diff --git a/package/gerbera/Config.in b/package/gerbera/Config.in
index b734de95de..33a9705bea 100644
--- a/package/gerbera/Config.in
+++ b/package/gerbera/Config.in
@@ -20,6 +20,9 @@ config BR2_PACKAGE_GERBERA
A free media server.
Stream your media to devices on your home network.
+ Select BR2_PACKAGE_DUKTAPE if you want to enable JavaScript
+ for scripting.
+
https://gerbera.io
comment "gerbera needs a toolchain w/ C++, threads, wchar, gcc >= 8"
diff --git a/package/gerbera/gerbera.mk b/package/gerbera/gerbera.mk
index 6e36377798..ccb3b2eeb5 100644
--- a/package/gerbera/gerbera.mk
+++ b/package/gerbera/gerbera.mk
@@ -16,15 +16,20 @@ GERBERA_DEPENDENCIES = \
sqlite \
util-linux \
zlib
-GERBERA_CONF_OPTS = \
- -DWITH_DEBUG=OFF \
- -DWITH_JS=OFF
+GERBERA_CONF_OPTS = -DWITH_DEBUG=OFF
# Uses __atomic_fetch_add_4
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
GERBERA_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
endif
+ifeq ($(BR2_PACKAGE_DUKTAPE),y)
+GERBERA_DEPENDENCIES += duktape
+GERBERA_CONF_OPTS += -DWITH_JS=ON
+else
+GERBERA_CONF_OPTS += -DWITH_JS=OFF
+endif
+
ifeq ($(BR2_PACKAGE_EXIV2),y)
GERBERA_DEPENDENCIES += exiv2
GERBERA_CONF_OPTS += -DWITH_EXIV2=ON