1 ################################################################################
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
16 --build
=$(GNU_HOST_NAME
) \
17 --host
=$(GNU_TARGET_NAME
) \
22 --pkgconfig
=$(PKG_CONFIG_HOST_BINARY
) \
23 --lua
=$(HOST_DIR
)/usr
/bin
/luajit \
28 ifeq ($(BR2_PACKAGE_LIBFFI
),y
)
29 MOARVM_CONF_OPTS
+= --has-libffi
30 MOARVM_DEPENDENCIES
+= libffi
33 ifeq ($(BR2_ENDIAN
),"BIG")
34 MOARVM_CONF_OPTS
+= --big-endian
37 define MOARVM_CONFIGURE_CMDS
38 (cd
$(@D
); $(TARGET_MAKE_ENV
) perl Configure.pl
$(MOARVM_CONF_OPTS
))
41 define MOARVM_BUILD_CMDS
42 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
45 define MOARVM_INSTALL_STAGING_CMDS
46 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(STAGING_DIR
) install
49 define MOARVM_INSTALL_TARGET_CMDS
50 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(TARGET_DIR
) install
53 $(eval
$(generic-package
))