aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
Diffstat (limited to 'irc')
-rw-r--r--irc/dxirc/Makefile5
-rw-r--r--irc/weechat-devel/Makefile2
-rw-r--r--irc/weechat/Makefile2
3 files changed, 4 insertions, 5 deletions
diff --git a/irc/dxirc/Makefile b/irc/dxirc/Makefile
index 1150b8481aa3..382432d14aa3 100644
--- a/irc/dxirc/Makefile
+++ b/irc/dxirc/Makefile
@@ -55,9 +55,8 @@ CONFIGURE_ARGS+= --disable-ssl
.endif
.if ${PORT_OPTIONS:MLUA}
-USE_LUA= 5.1+
-WANT_LUA_VER= 5.1
-CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua"
+USES+= lua:51
+CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}"
CONFIGURE_ARGS+= --enable-lua
.else
CONFIGURE_ARGS+= --disable-lua
diff --git a/irc/weechat-devel/Makefile b/irc/weechat-devel/Makefile
index 62e2790302b4..d13b419f525c 100644
--- a/irc/weechat-devel/Makefile
+++ b/irc/weechat-devel/Makefile
@@ -122,7 +122,7 @@ PLIST_SUB+= TCL="@comment "
.endif
.if ${PORT_OPTIONS:MLUA}
-USE_LUA= 5.1+
+USES+= lua:51
CMAKE_ARGS+= -DBSD_LUA_LIBDIR=${LUA_LIBDIR} \
-DBSD_LUA_INCDIR=${LUA_INCDIR}
PLIST_SUB+= LUA=""
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 6a9d3f7e9268..708a74b96529 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -112,7 +112,7 @@ PLIST_SUB+= TCL="@comment "
.endif
.if ${PORT_OPTIONS:MLUA}
-USE_LUA= 5.1+
+USES+= lua:51
CMAKE_ARGS+= -DBSD_LUA_LIBDIR=${LUA_LIBDIR} \
-DBSD_LUA_INCDIR=${LUA_INCDIR}
PLIST_SUB+= LUA=""