Initial Commit
- initial default booting image
This commit is contained in:
20
package/duktape/Config.in
Normal file
20
package/duktape/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_DUKTAPE
|
||||
bool "duktape"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on !BR2_OPTIMIZE_FAST
|
||||
help
|
||||
Duktape is an embeddable Javascript engine, with a focus on
|
||||
portability and compact footprint.
|
||||
|
||||
Duktape is easy to integrate into a C/C++ project: add
|
||||
duktape.c, duktape.h, and duk_config.h to your build, and use
|
||||
the Duktape API to call Ecmascript functions from C code and
|
||||
vice versa.
|
||||
|
||||
http://www.duktape.org
|
||||
|
||||
comment "duktape needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
comment "duktape can't be built with Optimize for fast"
|
||||
depends on BR2_OPTIMIZE_FAST
|
||||
3
package/duktape/duktape.hash
Normal file
3
package/duktape/duktape.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890 duktape-2.7.0.tar.xz
|
||||
sha256 c6b6659630ca6cb837afe982ecc79511bfca878b56296d628b02eb6f18789c29 LICENSE.txt
|
||||
34
package/duktape/duktape.mk
Normal file
34
package/duktape/duktape.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# duktape
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DUKTAPE_VERSION = 2.7.0
|
||||
DUKTAPE_SOURCE = duktape-$(DUKTAPE_VERSION).tar.xz
|
||||
DUKTAPE_SITE = \
|
||||
https://github.com/svaarala/duktape/releases/download/v$(DUKTAPE_VERSION)
|
||||
DUKTAPE_LICENSE = MIT
|
||||
DUKTAPE_LICENSE_FILES = LICENSE.txt
|
||||
DUKTAPE_INSTALL_STAGING = YES
|
||||
DUKTAPE_CPE_ID_VALID = YES
|
||||
|
||||
define DUKTAPE_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary
|
||||
endef
|
||||
|
||||
define DUKTAPE_INSTALL_STAGING_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary \
|
||||
INSTALL_PREFIX=$(STAGING_DIR)/usr install
|
||||
$(INSTALL) -D -m 0644 $(DUKTAPE_PKGDIR)/duktape.pc.in \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/duktape.pc
|
||||
$(SED) 's/@VERSION@/$(DUKTAPE_VERSION)/g;' \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/duktape.pc
|
||||
endef
|
||||
|
||||
define DUKTAPE_INSTALL_TARGET_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary \
|
||||
INSTALL_PREFIX=$(TARGET_DIR)/usr install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
10
package/duktape/duktape.pc.in
Normal file
10
package/duktape/duktape.pc.in
Normal file
@@ -0,0 +1,10 @@
|
||||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: duktape
|
||||
Description: Embeddable Javascript engine
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lduktape
|
||||
Cflags: -I${includedir}/
|
||||
Reference in New Issue
Block a user