Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= lua
  5. PKG_VERSION:= 5.1.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= d0870f2de55d59c1c8419f36e8fac150
  8. PKG_DESCR:= LUA programming language interpreter
  9. PKG_SECTION:= lang
  10. PKG_DEPENDS:= libreadline
  11. PKG_BUILDDEP:= readline
  12. PKG_URL:= http://www.lua.org/
  13. PKG_SITES:= http://www.lua.org/ftp/
  14. PKG_MULTI:= 1
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_SUBPKGS:= LUA LUAC LUA_EXAMPLES
  17. PKGSD_LUAC:= LUA bytecode compiler
  18. PKGSD_LUAEXAMPLES:= LUA script examples
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LUAC},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LUA_EXAMPLES,lua-examples,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LUAEXAMPLES},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. MAKE_FLAGS+= CFLAGS="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} -DLUA_USE_LINUX -fPIC" \
  25. MYLDFLAGS="${TARGET_LDFLAGS}" \
  26. CC="${TARGET_CC}" LD="${TARGET_CROSS}ld" \
  27. AR="${TARGET_CROSS}ar rcu" \
  28. RANLIB="${TARGET_CROSS}ranlib"
  29. XAKE_FLAGS+= INSTALL_TOP="${WRKINST}/usr"
  30. ALL_TARGET:= linux
  31. lua-install:
  32. ${INSTALL_DIR} ${IDIR_LUA}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/
  34. luac-install:
  35. ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin
  36. ${INSTALL_BIN} ${WRKINST}/usr/bin/luac ${IDIR_LUAC}/usr/bin/
  37. lua-examples-install:
  38. ${INSTALL_DIR} ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples
  39. ${INSTALL_DATA} ${WRKBUILD}/test/*.lua \
  40. ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples/
  41. include ${TOPDIR}/mk/pkg-bottom.mk