aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
Diffstat (limited to 'dns')
-rw-r--r--dns/dnsmasq-devel/Makefile4
-rw-r--r--dns/dnsmasq/Makefile6
2 files changed, 5 insertions, 5 deletions
diff --git a/dns/dnsmasq-devel/Makefile b/dns/dnsmasq-devel/Makefile
index 35d647a00e58..3242f4361a5c 100644
--- a/dns/dnsmasq-devel/Makefile
+++ b/dns/dnsmasq-devel/Makefile
@@ -62,7 +62,7 @@ CFLAGS+= -DHAVE_DBUS
.if ${PORT_OPTIONS:MLUA}
CFLAGS+= -DHAVE_LUASCRIPT
-USE_LUA= 5.1
+USES+= lua
.endif
.if ${PORT_OPTIONS:MDNSSEC}
@@ -76,7 +76,7 @@ USE_RC_SUBR= dnsmasq
.include <bsd.port.pre.mk>
post-patch:
- ${REINPLACE_CMD} -e "s/lua5\.1/lua-5.1/" ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e "s/lua5\.1/lua-${LUA_VER}/" ${WRKSRC}/Makefile
pre-configure:
@:
diff --git a/dns/dnsmasq/Makefile b/dns/dnsmasq/Makefile
index 46988a70c3cb..a9e896718981 100644
--- a/dns/dnsmasq/Makefile
+++ b/dns/dnsmasq/Makefile
@@ -72,8 +72,8 @@ LDFLAGS+= `pkg-config --libs dbus-1`
.if ${PORT_OPTIONS:MLUA}
CPPFLAGS+= -I${LUA_INCDIR}
CFLAGS+= -DHAVE_LUASCRIPT
-LDFLAGS+= -L${LUA_LIBDIR} -llua
-USE_LUA= 5.1
+LDFLAGS+= -L${LUA_LIBDIR} -llua-${LUA_VER}
+USES+= lua
.endif
.if ${PORT_OPTIONS:MDNSSEC}
@@ -89,7 +89,7 @@ USE_RC_SUBR= dnsmasq
LDFLAGS+= -L${LOCALBASE}/lib ${_intllibs} ${ICONV_LIB}
post-patch:
- ${REINPLACE_CMD} -e "s/lua5\.1/lua-5.1/" ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e "s/lua5\.1/lua-${LUA_VER}/" ${WRKSRC}/Makefile
pre-configure: pretty-print-config
@${PRINTF} "dns/libidn config: " ; ${MAKE} -C ${PORTSDIR}/dns/libidn pretty-print-config