source "package/python-zope-interface/Config.in"
endmenu
endif
+ source "package/quickjs/Config.in"
source "package/ruby/Config.in"
source "package/tcl/Config.in"
if BR2_PACKAGE_TCL
--- /dev/null
+config BR2_PACKAGE_QUICKJS
+ bool "quickjs"
+ depends on !BR2_STATIC_LIBS
+ # No way to check for fenv support.
+ depends on !BR2_TOOLCHAIN_USES_UCLIBC
+ depends on BR2_USE_MMU # fork()
+ help
+ QuickJS is a small and embeddable Javascript engine.
+ It supports the ES2020 specification including modules,
+ asynchronous generators, proxies and BigInt.
+
+ https://bellard.org/quickjs/
+
+comment "quickjs needs a glibc or musl toolchain w/ dynamic library"
+ depends on BR2_USE_MMU
+ depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC
--- /dev/null
+################################################################################
+#
+# quickjs
+#
+################################################################################
+
+QUICKJS_VERSION = 2020-09-06
+QUICKJS_SOURCE = quickjs-$(QUICKJS_VERSION).tar.xz
+QUICKJS_SITE = https://bellard.org/quickjs
+QUICKJS_LICENSE = MIT
+QUICKJS_INSTALL_STAGING = YES
+
+define QUICKJS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ CROSS_PREFIX="$(TARGET_CROSS)" \
+ all
+endef
+
+define QUICKJS_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ CROSS_PREFIX="$(TARGET_CROSS)" \
+ DESTDIR=$(STAGING_DIR) \
+ STRIP=/bin/true \
+ prefix=/usr \
+ install
+endef
+
+define QUICKJS_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ CROSS_PREFIX="$(TARGET_CROSS)" \
+ DESTDIR=$(TARGET_DIR) \
+ STRIP=/bin/true \
+ prefix=/usr \
+ install
+endef
+
+$(eval $(generic-package))