diff options
Diffstat (limited to 'package/lua/Makefile')
-rw-r--r-- | package/lua/Makefile | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/package/lua/Makefile b/package/lua/Makefile index 62c48501b..4df8515cc 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -6,20 +6,23 @@ include ${TOPDIR}/rules.mk PKG_NAME:= lua -PKG_VERSION:= 5.0.2 +PKG_VERSION:= 5.1.4 PKG_RELEASE:= 1 -PKG_MD5SUM:= dea74646b7e5c621fef7174df83c34b1 -MASTER_SITES:= http://www.lua.org/ftp/ \ +PKG_MD5SUM:= d0870f2de55d59c1c8419f36e8fac150 +PKG_DESCR:= LUA programming language +PKG_SECTION:= admin +PKG_URL:= http://www.lua.org +PKG_SITES:= http://www.lua.org/ftp/ \ http://ftp.gwdg.de/pub/languages/lua/ \ http://mirrors.dotsrc.org/lua/ \ http://www.tecgraf.puc-rio.br/lua/ftp/ include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,LIBLUA,liblua,${PKG_VERSION}-${PKG_RELEASE})) -$(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE})) -$(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE})) -$(eval $(call PKG_template,LUA_EXAMPLES,lua-examples,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,LIBLUA,liblua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LUA_EXAMPLES,lua-examples,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) do-build: ${MAKE} -C ${WRKBUILD} \ @@ -27,30 +30,17 @@ do-build: LD="${TARGET_CROSS}ld" \ AR="${TARGET_CROSS}ar rcu" \ RANLIB="${TARGET_CROSS}ranlib" \ - INSTALL_ROOT=/usr \ - MYCFLAGS="${TCFLAGS} ${TCPPFLAGS}" \ + INSTALL_TOP=/usr \ + CFLAGS="${TCFLAGS} ${TCPPFLAGS} -DLUA_USE_LINUX -fPIC" \ MYLDFLAGS="${TLDFLAGS}" \ - all so - # remove statically linked binaries, so that they will get linked against shlib this time - rm -f ${WRKBUILD}/bin/lua{,c} + linux ${MAKE} -C ${WRKBUILD} \ - CC="${TARGET_CC}" \ - LD="${TARGET_CROSS}ld" \ - AR="${TARGET_CROSS}ar rcu" \ - RANLIB="${TARGET_CROSS}ranlib" \ - INSTALL_ROOT=/usr \ - MYCFLAGS="${TCFLAGS} ${TCPPFLAGS}" \ - MYLDFLAGS="${TLDFLAGS}" \ - all - rm -rf ${WRKINST} - mkdir -p ${WRKINST} - ${MAKE} -C ${WRKBUILD} \ - INSTALL_ROOT="${WRKINST}/usr" \ - install soinstall + INSTALL_TOP="${WRKINST}/usr" \ + install do-install: ${INSTALL_DIR} ${IDIR_LIBLUA}/usr/lib - ${CP} ${WRKINST}/usr/lib/liblua{,lib}.so.* ${IDIR_LIBLUA}/usr/lib/ + ${CP} ${WRKINST}/usr/lib/liblua.a ${IDIR_LIBLUA}/usr/lib/ ${INSTALL_DIR} ${IDIR_LUA}/usr/bin ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/ ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin |