2015-06-06 01:47:05 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# moarvm
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-03-21 16:50:15 +01:00
|
|
|
MOARVM_VERSION = 2017.03
|
2015-06-06 01:47:05 +02:00
|
|
|
MOARVM_SITE = http://moarvm.com/releases
|
|
|
|
MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
|
|
|
|
MOARVM_LICENSE = Artistic-2.0
|
|
|
|
MOARVM_LICENSE_FILES = Artistic2.txt
|
|
|
|
MOARVM_INSTALL_STAGING = YES
|
2016-11-23 15:39:10 +01:00
|
|
|
MOARVM_DEPENDENCIES = host-luajit host-pkgconf libuv libtommath libatomic_ops
|
2015-06-06 01:47:05 +02:00
|
|
|
|
|
|
|
MOARVM_CONF_OPTS = \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--ar="$(TARGET_AR)" \
|
|
|
|
--cc="$(TARGET_CC)" \
|
|
|
|
--ld="$(TARGET_CC)" \
|
|
|
|
--prefix="/usr" \
|
2016-11-23 15:39:10 +01:00
|
|
|
--pkgconfig=$(PKG_CONFIG_HOST_BINARY) \
|
2015-06-06 01:47:05 +02:00
|
|
|
--lua=$(HOST_DIR)/usr/bin/luajit \
|
|
|
|
--has-libuv \
|
2016-04-28 21:59:31 +02:00
|
|
|
--has-libtommath \
|
2015-06-06 01:47:05 +02:00
|
|
|
--has-libatomic
|
|
|
|
|
2016-11-23 15:39:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFFI),y)
|
|
|
|
MOARVM_CONF_OPTS += --has-libffi
|
|
|
|
MOARVM_DEPENDENCIES += libffi
|
|
|
|
endif
|
|
|
|
|
2015-06-06 01:47:05 +02:00
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
|
|
MOARVM_CONF_OPTS += --big-endian
|
|
|
|
endif
|
|
|
|
|
|
|
|
define MOARVM_CONFIGURE_CMDS
|
2016-10-17 18:05:51 +02:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) perl Configure.pl $(MOARVM_CONF_OPTS))
|
2015-06-06 01:47:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MOARVM_BUILD_CMDS
|
2016-10-17 18:05:51 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
2015-06-06 01:47:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MOARVM_INSTALL_STAGING_CMDS
|
2016-10-17 18:05:51 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
2015-06-06 01:47:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MOARVM_INSTALL_TARGET_CMDS
|
2016-10-17 18:05:51 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
2015-06-06 01:47:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|