initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_DUKTAPE
|
||||
bool "duktape"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
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
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7 duktape-2.6.0.tar.xz
|
||||
sha256 5b42d02dbd084fd6d7e61d93f52e02b596f25400e54e0f86d5780045e5b754c8 LICENSE.txt
|
||||
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# duktape
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DUKTAPE_VERSION = 2.6.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
|
||||
|
||||
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))
|
||||
@@ -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