summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/conky/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysutils/conky/Makefile b/sysutils/conky/Makefile
index 4eabc66d7ca7..045a8d395c8e 100644
--- a/sysutils/conky/Makefile
+++ b/sysutils/conky/Makefile
@@ -144,6 +144,15 @@ post-patch:
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
@${REINPLACE_CMD} -e 's,LOCALBASE,${LOCALBASE},' \
${WRKSRC}/doc/docgen.sh
+.if ${LUA_DEFAULT} == 5.2
+ # Force using lua 5.2
+ @${REINPLACE_CMD} -e 's/lua.*5\.*3//' \
+ ${WRKSRC}/cmake/ConkyPlatformChecks.cmake
+.elif ${LUA_DEFAULT} == 5.3
+ # Force using lua 5.3
+ @${REINPLACE_CMD} -e 's/lua.*5\.*2//' \
+ ${WRKSRC}/cmake/ConkyPlatformChecks.cmake
+.endif
post-build:
(cd ${WRKSRC}/doc && ${SH} docgen.sh)