Upgrade to 5.1.3.
PR: ports/120542 Submitted by: Hirohisa Yamaguchi <umq at ueo dot co dot jp> Approved by: maintainer
This commit is contained in:
parent
7f3801b58a
commit
bd2faa929e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209356
3 changed files with 22 additions and 7 deletions
|
@ -6,8 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= lua
|
||||
PORTVERSION= 5.1.1
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 5.1.3
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www.lua.org/ftp/ \
|
||||
ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
|
||||
|
@ -21,7 +20,8 @@ COMMENT= Small, compilable scripting language providing easy access to C code
|
|||
|
||||
USE_LUA= 5.1
|
||||
LUA_COMPS= # only define variables
|
||||
ALL_TARGET= bsd
|
||||
ALL_TARGET= freebsd
|
||||
USE_GNOME= pkgconfig
|
||||
|
||||
MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1
|
||||
DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR}
|
||||
|
@ -33,10 +33,21 @@ LUA_MAN= ${LUA_BIN:S/$/.1/}
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -Ee \
|
||||
's|^(CC=).*|\1 ${CC}| ; \
|
||||
'/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \
|
||||
s|^(CC=).*|\1 ${CC}| ; \
|
||||
s|^(CFLAGS=)|\1 ${CFLAGS}| ; \
|
||||
s|/usr/local|${PREFIX}|' \
|
||||
${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
|
||||
@${REINPLACE_CMD} -Ee \
|
||||
's|^(prefix=).*|\1 ${PREFIX}| ; \
|
||||
s|^(libdir=).*|\1 ${LUA_LIBDIR}| ; \
|
||||
s|^(includedir=).*|\1 ${LUA_INCDIR}| ; \
|
||||
s|^(INSTALL_BIN=).*|\1 ${LUA_BINDIR}| ; \
|
||||
s|^(INSTALL_INC=).*|\1 ${LUA_INCDIR}| ; \
|
||||
s|^(INSTALL_LIB=).*|\1 ${LUA_LIBDIR}| ; \
|
||||
s|^(INSTALL_CMOD=).*|\1 ${LUA_MODLIBDIR}| ; \
|
||||
s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}|' \
|
||||
${WRKSRC}/etc/lua.pc && ${RM} ${WRKSRC}/etc/lua.pc.bak
|
||||
|
||||
post-build:
|
||||
@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac
|
||||
|
@ -71,6 +82,8 @@ do-install:
|
|||
# Module directories.
|
||||
${MKDIR} ${LUA_MODLIBDIR}
|
||||
${MKDIR} ${LUA_MODSHAREDIR}
|
||||
# pkg-config file.
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/libdata/pkgconfig
|
||||
|
||||
.if ${MACHINE_ARCH:L} == "amd64"
|
||||
CFLAGS+= -fPIC
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (lua-5.1.1.tar.gz) = 22f4f912f20802c11006fe9b84d5c461
|
||||
SHA256 (lua-5.1.1.tar.gz) = c5daeed0a75d8e4dd2328b7c7a69888247868154acbda69110e97d4a6e17d1f0
|
||||
SIZE (lua-5.1.1.tar.gz) = 207810
|
||||
MD5 (lua-5.1.3.tar.gz) = a70a8dfaa150e047866dc01a46272599
|
||||
SHA256 (lua-5.1.3.tar.gz) = 6b5df2edaa5e02bf1a2d85e1442b2e329493b30b0c0780f77199d24f087d296d
|
||||
SIZE (lua-5.1.3.tar.gz) = 215817
|
||||
|
|
|
@ -10,7 +10,9 @@ bin/luac-%%LUA_VER%%
|
|||
%%LUA_INCDIR%%/luaconf.h
|
||||
%%LUA_INCDIR%%/lualib.h
|
||||
%%LUA_LIBDIR%%/liblua.a
|
||||
libdata/pkgconfig/lua.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amazon.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/contents.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile
|
||||
%%PORTDOCS%%%%DOCSDIR%%/etc/README
|
||||
|
|
Loading…
Reference in a new issue