e8edf25ac8
cpe:2.3🅰️duktape_project:duktape:2.7.0:*:*:*:*:*:*:* is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/detail/DEAF95D7-0DAB-4025-8C5A-9CCF80D75CF2 Signed-off-by: Christian Hitz <christian.hitz@bbv.ch> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# 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_VENDOR = duktape_project
|
|
|
|
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))
|