imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / lua / Makefile
blob3e6e7c0a704d57449b45c858080e0fadfbb0172b
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:= lua
7 PKG_VERSION:= 5.3.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c
10 PKG_DESCR:= programming language interpreter
11 PKG_SECTION:= dev/lang
12 PKG_DEPENDS:= libreadline
13 PKG_BUILDDEP:= readline
14 PKG_URL:= http://www.lua.org/
15 PKG_SITES:= http://www.lua.org/ftp/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_SUBPKGS:= LUA LUAC
20 PKGSD_LUAC:= lua bytecode compiler
21 PKGSN_LUAC:= lua
23 include ${ADK_TOPDIR}/mk/package.mk
25 $(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 $(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LUAC},${PKG_SECTION}))
28 CONFIG_STYLE:= manual
29 MAKE_FLAGS+= CFLAGS="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} -DLUA_USE_LINUX -fPIC" \
30 MYLDFLAGS="${TARGET_LDFLAGS} -ltinfo" \
31 CC="${TARGET_CC}" LD="${TARGET_CROSS}ld" \
32 AR="${TARGET_CROSS}ar rcu" \
33 RANLIB="${TARGET_CROSS}ranlib"
34 XAKE_FLAGS+= INSTALL_TOP="${WRKINST}/usr"
35 ALL_TARGET:= linux
37 lua-install:
38 ${INSTALL_DIR} ${IDIR_LUA}/usr/bin
39 ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/
41 luac-install:
42 ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin
43 ${INSTALL_BIN} ${WRKINST}/usr/bin/luac ${IDIR_LUAC}/usr/bin/
45 include ${ADK_TOPDIR}/mk/pkg-bottom.mk