summaryrefslogtreecommitdiff
path: root/package/luajit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/luajit/Makefile')
-rw-r--r--package/luajit/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/luajit/Makefile b/package/luajit/Makefile
new file mode 100644
index 000000000..6024a55b6
--- /dev/null
+++ b/package/luajit/Makefile
@@ -0,0 +1,46 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= luajit
+PKG_VERSION:= 2.0.3
+PKG_RELEASE:= 1
+PKG_HASH:= 55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79
+PKG_DESCR:= just in time compiler for lua
+PKG_SECTION:= dev/lang
+PKG_URL:= http://luajit.org/download/
+PKG_SITES:= http://luajit.org/download/
+
+DISTFILES:= LuaJIT-$(PKG_VERSION).tar.gz
+
+WRKDIST= $(WRKDIR)/LuaJIT-$(PKG_VERSION)
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LUAJIT,luajit,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= manual
+MAKE_TARGET:= amalg
+XAKE_FLAGS+= STATIC_CC="$(TARGET_CC)" \
+ DYNAMIC_CC="$(TARGET_CC)" \
+ CROSS='$(TARGET_CROSS)' \
+ PREFIX=/usr \
+ CFLAGS='' \
+ LDFLAGS='' \
+ TARGET_CFLAGS='$(TARGET_CFLAGS)' \
+ TARGET_LDFLAGS='$(TARGET_LDFLAGS)' \
+ HOST_CC='$(HOST_CC) -m32' \
+ HOST_CFLAGS='$(HOST_CFLAGS)' \
+ HOST_LDFLAGS='$(HOST_LDFLAGS)' \
+ Q=''
+
+luajit-install:
+ $(INSTALL_DIR) $(IDIR_LUAJIT)/usr/bin
+ $(CP) $(WRKINST)/usr/bin/luajit* \
+ $(IDIR_LUAJIT)/usr/bin
+ $(INSTALL_DIR) $(IDIR_LUAJIT)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libluajit-*.so* \
+ $(IDIR_LUAJIT)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk