Skip to contentSkip to conversation

package/gerbera: add optional duktape dependency

PATCH New Jörg Krause 2 participants 2 messages Feb 25, 2021 – Mar 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gerbera: add optional duktape dependency

Duktape allows the user to enable JavaScript scripting support.

---
 package/gerbera/Config.in  |  3 +++
 package/gerbera/gerbera.mk | 11 ++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)
package/gerbera/Config.in +3 -0
index b734de95de..a252dff9a9 100644
@@ -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"
package/gerbera/gerbera.mk +8 -3
index 6e36377798..ccb3b2eeb5 100644
@@ -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
Signature · 1 line
2.30.1
#1 lore raw

PATCH 1/1 package/gerbera: add optional duktape dependency

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

Duktape allows the user to enable JavaScript scripting support.

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard