2021-02-13 12:39:28 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# janet
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-01-24 09:39:43 +01:00
|
|
|
JANET_VERSION = 1.33.0
|
2021-02-13 12:39:28 +01:00
|
|
|
JANET_SITE = $(call github,janet-lang,janet,v$(JANET_VERSION))
|
|
|
|
JANET_LICENSE = MIT
|
|
|
|
JANET_LICENSE_FILES = LICENSE
|
2021-03-13 10:59:07 +01:00
|
|
|
|
2021-02-13 12:39:28 +01:00
|
|
|
JANET_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
JANET_CONF_OPTS += -Ddynamic_modules=false
|
|
|
|
endif
|
|
|
|
|
2021-11-05 20:32:43 +01:00
|
|
|
# Uses __atomic_fetch_add_4
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2021-11-14 15:47:09 +01:00
|
|
|
JANET_LDFLAGS += $(TARGET_LDFLAGS) -latomic
|
2021-11-05 20:32:43 +01:00
|
|
|
endif
|
|
|
|
|
2021-02-13 12:39:28 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
|
|
JANET_CONF_OPTS += -Dsingle_threaded=true
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(meson-package))
|