summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-10-01 00:27:08 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-10-01 00:27:08 (GMT)
commit654dd89ecd9f5d4b9f9b67587815471ed1eca4be (patch)
treebca2597e316a0c6bd314946a319b7375c28f3fb9 /src
parent7ba44f6b304bf05ad5355d3bd4663d9bd6fb3130 (diff)
parent6eefed63137e726a4a647ebe98be42795dafac85 (diff)
downloadmxe-654dd89ecd9f5d4b9f9b67587815471ed1eca4be.zip
mxe-654dd89ecd9f5d4b9f9b67587815471ed1eca4be.tar.gz
mxe-654dd89ecd9f5d4b9f9b67587815471ed1eca4be.tar.bz2
Merge pull request #509 from starius/master
Add package LuaJIT
Diffstat (limited to 'src')
-rw-r--r--src/luajit.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/luajit.mk b/src/luajit.mk
new file mode 100644
index 0000000..1dc5b87
--- /dev/null
+++ b/src/luajit.mk
@@ -0,0 +1,30 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := luajit
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.0.3
+$(PKG)_CHECKSUM := 2db39e7d1264918c2266b0436c313fbd12da4ceb
+$(PKG)_SUBDIR := LuaJIT-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
+$(PKG)_URL := http://luajit.org/download/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_BUILD
+ $(MAKE) -C '$(1)' -j '$(JOBS)' \
+ HOST_CC='gcc -m32' CROSS='$(TARGET)-' \
+ TARGET_SYS=Windows BUILDMODE=static \
+ PREFIX='$(PREFIX)/$(TARGET)' \
+ FILE_T=luajit.exe \
+ install
+endef
+
+# gcc -m64 is only available on 64-bit machines
+ifneq (,$(findstring 64,$(BUILD)))
+ $(PKG)_BUILD_x86_64-w64-mingw32 = \
+ $(subst 'gcc -m32','gcc -m64',$($(PKG)_BUILD))
+else
+ $(PKG)_BUILD_x86_64-w64-mingw32 =
+endif
+
+$(PKG)_BUILD_SHARED =