Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= 1
  7. PKG_MD5SUM:= d0870f2de55d59c1c8419f36e8fac150
  8. PKG_DESCR:= LUA programming language
  9. PKG_SECTION:= admin
  10. PKG_URL:= http://www.lua.org
  11. PKG_SITES:= http://www.lua.org/ftp/ \
  12. http://ftp.gwdg.de/pub/languages/lua/ \
  13. http://mirrors.dotsrc.org/lua/ \
  14. http://www.tecgraf.puc-rio.br/lua/ftp/
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBLUA,liblua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LUA_EXAMPLES,lua-examples,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. do-build:
  24. ${MAKE} -C ${WRKBUILD} \
  25. CC="${TARGET_CC}" \
  26. LD="${TARGET_CROSS}ld" \
  27. AR="${TARGET_CROSS}ar rcu" \
  28. RANLIB="${TARGET_CROSS}ranlib" \
  29. INSTALL_TOP=/usr \
  30. CFLAGS="${TCFLAGS} ${TCPPFLAGS} -DLUA_USE_LINUX -fPIC" \
  31. MYLDFLAGS="${TLDFLAGS}" \
  32. linux
  33. ${MAKE} -C ${WRKBUILD} \
  34. INSTALL_TOP="${WRKINST}/usr" \
  35. install
  36. do-install:
  37. ${INSTALL_DIR} ${IDIR_LIBLUA}/usr/lib
  38. ${CP} ${WRKINST}/usr/lib/liblua.a ${IDIR_LIBLUA}/usr/lib/
  39. ${INSTALL_DIR} ${IDIR_LUA}/usr/bin
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/
  41. ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/luac ${IDIR_LUAC}/usr/bin/
  43. ${INSTALL_DIR} ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples
  44. ${INSTALL_DATA} ${WRKBUILD}/test/*.lua \
  45. ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples/
  46. include ${TOPDIR}/mk/pkg-bottom.mk