mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Fix detection of lua
This commit is contained in:
parent
bf8eb49b19
commit
9d17bde769
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355480
@ -21,8 +21,7 @@ DATADIR_NAME= wireshark
|
||||
|
||||
USE_PERL5= build
|
||||
USE_PYTHON_BUILD=yes
|
||||
USES= iconv gettext pkgconfig gmake perl5
|
||||
USE_BZIP2= yes
|
||||
USES= iconv gettext pkgconfig gmake perl5 tar:bzip2
|
||||
WANT_GNOME= yes
|
||||
USE_OPENSSL= yes
|
||||
CONFIGURE_ENV= LIBS="${WIRESHARK_LIBS}"
|
||||
@ -66,7 +65,7 @@ ADNS_DESC= Enable asynchronous DNS lookup support
|
||||
USE_XORG= x11
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MX11}
|
||||
PLIST_SUB+= WIRESHARK=bin/wireshark WIRESHARK_MAN=""
|
||||
@ -104,7 +103,8 @@ CONFIGURE_ARGS+= --with-pcre=no
|
||||
|
||||
.if ${PORT_OPTIONS:MLUA} && !defined(LITE)
|
||||
USES+= lua:51
|
||||
CONFIGURE_ARGS+=--with-lua=${LUA_PREFIX}
|
||||
CONFIGURE_ARGS+=--with-lua=${PREFIX}
|
||||
CPPFLAGS+= -I${LUA_INCDIR}
|
||||
PLIST_SUB+= LUA=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-lua
|
||||
@ -166,13 +166,12 @@ CONFIGURE_ARGS+=--with-krb5=no
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LUA_INCDIR%%|${LUA_INCDIR}|g ; \
|
||||
s|-Wl,--as-needed|| ; \
|
||||
s|%%LUA_LIBDIR%%|${LUA_LIBDIR}|g' \
|
||||
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \
|
||||
s|-Wl,--as-needed|| ' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/image/hi48-app-wireshark.png \
|
||||
${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,28 +1,5 @@
|
||||
--- configure.orig 2012-11-28 13:51:02.000000000 -0500
|
||||
+++ configure 2012-12-17 01:11:49.000000000 -0500
|
||||
@@ -25305,9 +25305,9 @@ $as_echo "yes" >&6; }
|
||||
# searches the specified directory.
|
||||
#
|
||||
wireshark_save_CPPFLAGS="$CPPFLAGS"
|
||||
- CPPFLAGS="$CPPFLAGS -I$lua_dir/include"
|
||||
+ CPPFLAGS="$CPPFLAGS -I%%LUA_INCDIR%%"
|
||||
wireshark_save_LIBS="$LIBS"
|
||||
- LIBS="$LIBS -L$lua_dir/lib -llua -lm"
|
||||
+ LIBS="$LIBS -L%%LUA_LIBDIR%% -llua -lm"
|
||||
wireshark_save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -L$lua_dir/lib"
|
||||
else
|
||||
@@ -25512,8 +25512,8 @@ if test "x$ac_cv_lib_lua_luaL_register"
|
||||
# Put the "-I" and "-L" flags for lua into
|
||||
# LUA_INCLUDES and LUA_LIBS, respectively.
|
||||
#
|
||||
- LUA_LIBS="-L$lua_dir/lib -llua -lm"
|
||||
- LUA_INCLUDES="-I$lua_dir/include"
|
||||
+ LUA_LIBS="-L%%LUA_LIBDIR%% -llua -lm"
|
||||
+ LUA_INCLUDES="-I%%LUA_INCDIR%%"
|
||||
else
|
||||
LUA_LIBS="-llua -lm"
|
||||
LUA_INCLUDES=""
|
||||
@@ -26487,7 +26487,7 @@ $as_echo "yes" >&6; }
|
||||
# searches the specified directory.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user