kumquat-buildroot/package/quickjs/quickjs.mk
Francois Perrad 5d50793659 package/quickjs: new package
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-11-07 13:32:52 +01:00

38 lines
871 B
Makefile

################################################################################
#
# 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))