python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / moarvm / moarvm.mk
blob3f0eaffadca6621f8999268dc79fe7536b37b2e9
1 ################################################################################
3 # moarvm
5 ################################################################################
7 MOARVM_VERSION = 2017.02
8 MOARVM_SITE = http://moarvm.com/releases
9 MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz
10 MOARVM_LICENSE = Artistic-2.0
11 MOARVM_LICENSE_FILES = Artistic2.txt
12 MOARVM_INSTALL_STAGING = YES
13 MOARVM_DEPENDENCIES = host-luajit host-pkgconf libuv libtommath libatomic_ops
15 MOARVM_CONF_OPTS = \
16 --build=$(GNU_HOST_NAME) \
17 --host=$(GNU_TARGET_NAME) \
18 --ar="$(TARGET_AR)" \
19 --cc="$(TARGET_CC)" \
20 --ld="$(TARGET_CC)" \
21 --prefix="/usr" \
22 --pkgconfig=$(PKG_CONFIG_HOST_BINARY) \
23 --lua=$(HOST_DIR)/usr/bin/luajit \
24 --has-libuv \
25 --has-libtommath \
26 --has-libatomic
28 ifeq ($(BR2_PACKAGE_LIBFFI),y)
29 MOARVM_CONF_OPTS += --has-libffi
30 MOARVM_DEPENDENCIES += libffi
31 endif
33 ifeq ($(BR2_ENDIAN),"BIG")
34 MOARVM_CONF_OPTS += --big-endian
35 endif
37 define MOARVM_CONFIGURE_CMDS
38 (cd $(@D); $(TARGET_MAKE_ENV) perl Configure.pl $(MOARVM_CONF_OPTS))
39 endef
41 define MOARVM_BUILD_CMDS
42 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
43 endef
45 define MOARVM_INSTALL_STAGING_CMDS
46 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
47 endef
49 define MOARVM_INSTALL_TARGET_CMDS
50 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
51 endef
53 $(eval $(generic-package))