mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
- liblua.so is required in building mod_security, wireshark and possibly others with lua support, now create a shared lib is needed.
- Bump PORTREVISION. PR: ports/124297 Submitted by: Tomoyuki Sakurai <cherry@trombik.org> Approved by: maintainer timeout ( > 2 weeks)
This commit is contained in:
parent
88bb05e262
commit
fbabccfccf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216277
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= lua
|
||||
PORTVERSION= 5.1.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www.lua.org/ftp/ \
|
||||
ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
|
||||
@ -23,6 +23,7 @@ USE_LUA= 5.1
|
||||
LUA_COMPS= # only define variables
|
||||
ALL_TARGET= freebsd
|
||||
USE_GNOME= pkgconfig
|
||||
USE_LDCONFIG= ${LUA_LIBDIR}
|
||||
|
||||
MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1
|
||||
DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR}
|
||||
@ -74,6 +75,8 @@ do-install:
|
||||
# Libraries.
|
||||
${MKDIR} ${LUA_LIBDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/liblua.a ${LUA_LIBDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/liblua.so ${LUA_LIBDIR}/liblua.so.1
|
||||
cd ${LUA_LIBDIR} && ${LN} -s liblua.so.1 liblua.so
|
||||
# Manual pages.
|
||||
.for f in ${LUA_MAN}
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${f} \
|
||||
@ -95,7 +98,7 @@ do-install:
|
||||
.endif
|
||||
# lua.pc
|
||||
${MKDIR} ${LOCALBASE}/libdata/pkgconfig
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${LOCALBASE}/libdata/pkgconfig/lua-${LUA_VER}.pc
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/libdata/pkgconfig/lua-${LUA_VER}.pc
|
||||
# Module directories.
|
||||
${MKDIR} ${LUA_MODLIBDIR}
|
||||
${MKDIR} ${LUA_MODSHAREDIR}
|
||||
|
27
lang/lua/files/patch-Makefile
Normal file
27
lang/lua/files/patch-Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
--- src/Makefile.orig 2008-05-29 19:24:46.000000000 +0900
|
||||
+++ src/Makefile 2008-05-29 19:27:30.000000000 +0900
|
||||
@@ -31,12 +31,13 @@
|
||||
|
||||
LUA_T= lua
|
||||
LUA_O= lua.o
|
||||
+LUA_SO= liblua.so
|
||||
|
||||
LUAC_T= luac
|
||||
LUAC_O= luac.o print.o
|
||||
|
||||
ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
|
||||
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
||||
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
|
||||
ALL_A= $(LUA_A)
|
||||
|
||||
default: $(PLAT)
|
||||
@@ -47,6 +48,9 @@
|
||||
|
||||
a: $(ALL_A)
|
||||
|
||||
+$(LUA_SO): $(CORE_O) $(LIB_O)
|
||||
+ $(CC) -o $@ $(MYLDFLAGS) -shared $?
|
||||
+
|
||||
$(LUA_A): $(CORE_O) $(LIB_O)
|
||||
$(AR) $@ $?
|
||||
$(RANLIB) $@
|
@ -10,6 +10,8 @@ bin/luac-%%LUA_VER%%
|
||||
%%LUA_INCDIR%%/luaconf.h
|
||||
%%LUA_INCDIR%%/lualib.h
|
||||
%%LUA_LIBDIR%%/liblua.a
|
||||
%%LUA_LIBDIR%%/liblua.so
|
||||
%%LUA_LIBDIR%%/liblua.so.1
|
||||
libdata/pkgconfig/lua-%%LUA_VER%%.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amazon.gif
|
||||
|
Loading…
Reference in New Issue
Block a user