Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 ${ADK_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:= dev/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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= LUA LUAC
  16. PKGSD_LUAC:= lua bytecode compiler
  17. PKGSN_LUAC:= lua
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LUAC},${PKG_SECTION}))
  21. CONFIG_STYLE:= manual
  22. MAKE_FLAGS+= CFLAGS="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} -DLUA_USE_LINUX -fPIC" \
  23. MYLDFLAGS="${TARGET_LDFLAGS}" \
  24. CC="${TARGET_CC}" LD="${TARGET_CROSS}ld" \
  25. AR="${TARGET_CROSS}ar rcu" \
  26. RANLIB="${TARGET_CROSS}ranlib"
  27. XAKE_FLAGS+= INSTALL_TOP="${WRKINST}/usr"
  28. ALL_TARGET:= linux
  29. lua-install:
  30. ${INSTALL_DIR} ${IDIR_LUA}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/
  32. luac-install:
  33. ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/luac ${IDIR_LUAC}/usr/bin/
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk