2018-09-05 12:23:20 -06:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# duktape
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-02-22 14:42:47 -07:00
|
|
|
DUKTAPE_VERSION = 2.7.0
|
2020-10-15 10:57:21 -06:00
|
|
|
DUKTAPE_SOURCE = duktape-$(DUKTAPE_VERSION).tar.xz
|
|
|
|
DUKTAPE_SITE = \
|
|
|
|
https://github.com/svaarala/duktape/releases/download/v$(DUKTAPE_VERSION)
|
2018-09-05 12:23:20 -06:00
|
|
|
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
|
2021-07-04 23:40:56 -06:00
|
|
|
$(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
|
2018-09-05 12:23:20 -06:00
|
|
|
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))
|