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
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
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}))
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"
38 ${INSTALL_DIR} ${IDIR_LUA}/usr
/bin
39 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/lua
${IDIR_LUA}/usr
/bin
/
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