imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / luajit / Makefile
blob21fec1a1ed950b12074bfff9d6fd77be7d16ab42
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= luajit
7 PKG_VERSION:= 0d313b243194a0b8d2399d8b549ca5a0ff234db5
8 PKG_GIT:= hash
9 PKG_RELEASE:= 1
10 PKG_DESCR:= just in time compiler for lua
11 PKG_SECTION:= dev/lang
12 PKG_URL:= http://luajit.org/download/
13 PKG_SITES:= https://luajit.org/git/luajit.git
15 include $(ADK_TOPDIR)/mk/package.mk
17 $(eval $(call PKG_template,LUAJIT,luajit,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
19 CONFIG_STYLE:= manual
20 MAKE_TARGET:= amalg
21 XAKE_FLAGS+= STATIC_CC="$(TARGET_CC)" \
22 DYNAMIC_CC="$(TARGET_CC)" \
23 CROSS='$(TARGET_CROSS)' \
24 PREFIX=/usr \
25 CFLAGS='' \
26 LDFLAGS='' \
27 TARGET_CFLAGS='$(TARGET_CFLAGS) -fPIC' \
28 TARGET_LDFLAGS='$(TARGET_LDFLAGS)' \
29 HOST_CC='$(HOST_CC)' \
30 HOST_CFLAGS='$(HOST_CFLAGS)' \
31 HOST_LDFLAGS='$(HOST_LDFLAGS)' \
32 Q=''
34 luajit-install:
35 $(INSTALL_DIR) $(IDIR_LUAJIT)/usr/bin
36 $(CP) $(WRKINST)/usr/bin/luajit* \
37 $(IDIR_LUAJIT)/usr/bin
38 $(INSTALL_DIR) $(IDIR_LUAJIT)/usr/lib
39 $(CP) $(WRKINST)/usr/lib/libluajit-*.so* \
40 $(IDIR_LUAJIT)/usr/lib
42 include $(ADK_TOPDIR)/mk/pkg-bottom.mk