2020-11-06 23:51:14 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# quickjs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-04-05 12:26:14 +02:00
|
|
|
QUICKJS_VERSION = 2021-03-27
|
2020-11-06 23:51:14 +01:00
|
|
|
QUICKJS_SOURCE = quickjs-$(QUICKJS_VERSION).tar.xz
|
|
|
|
QUICKJS_SITE = https://bellard.org/quickjs
|
|
|
|
QUICKJS_LICENSE = MIT
|
2021-04-05 12:26:14 +02:00
|
|
|
QUICKJS_LICENSE_FILES = LICENSE
|
2020-11-06 23:51:14 +01:00
|
|
|
QUICKJS_INSTALL_STAGING = YES
|
|
|
|
|
2021-01-03 21:19:59 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
QUICKJS_EXTRA_LIBS += -latomic
|
|
|
|
endif
|
|
|
|
|
2020-11-06 23:51:14 +01:00
|
|
|
define QUICKJS_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
CROSS_PREFIX="$(TARGET_CROSS)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QUICKJS_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
CROSS_PREFIX="$(TARGET_CROSS)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
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)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
STRIP=/bin/true \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|