mxe/src/luajit.mk

40 lines
1.2 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2014-09-20 12:49:23 +01:00
PKG := luajit
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://luajit.org/luajit.html
$(PKG)_DESCR := LuaJIT
2014-09-20 12:49:23 +01:00
$(PKG)_IGNORE :=
2015-05-14 20:19:50 +01:00
$(PKG)_VERSION := 2.0.4
$(PKG)_ABIVER := 5.1
$(PKG)_CHECKSUM := 620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d
2014-09-20 12:49:23 +01:00
$(PKG)_SUBDIR := LuaJIT-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://luajit.org/download/$($(PKG)_FILE)
$(PKG)_DEPS := cc dlfcn-win32
$(PKG)_DEPS_$(BUILD) :=
2014-09-20 12:49:23 +01:00
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' \
HOST_CC='$(BUILD_CC) -m$(BITS)' CROSS='$(TARGET)-' \
2014-09-20 12:49:23 +01:00
TARGET_SYS=Windows BUILDMODE=static \
PREFIX='$(PREFIX)/$(TARGET)' \
FILE_T=luajit.exe \
INSTALL_TNAME=luajit-$($(PKG)_VERSION).exe \
INSTALL_TSYMNAME=luajit.exe \
2014-09-20 12:49:23 +01:00
install
endef
define $(PKG)_BUILD_$(BUILD)
$(MAKE) -C '$(1)' -j '$(JOBS)' \
BUILDMODE=static \
PREFIX='$(PREFIX)/$(BUILD)' \
install
endef
# gcc -m64 is only available on 64-bit machines
ifeq (,$(findstring 64,$(BUILD)))
$(PKG)_BUILD_x86_64-w64-mingw32 =
endif
2014-09-20 12:49:23 +01:00
$(PKG)_BUILD_SHARED =