summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multimedia/libquvi/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/multimedia/libquvi/Makefile b/multimedia/libquvi/Makefile
index 72df5bb..a22baa8 100644
--- a/multimedia/libquvi/Makefile
+++ b/multimedia/libquvi/Makefile
@@ -33,14 +33,11 @@ PORTDOCS= *
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit
LUAJIT_USES_OFF= lua
-.include <bsd.port.options.mk>
+post-patch-LUAJIT-off:
+ @${REINPLACE_CMD} 's|lua-5.1|lua-${LUA_VER}|g' ${WRKSRC}/configure
-post-patch:
-.if ${PORT_OPTIONS:MLUAJIT}
+post-patch-LUAJIT-on:
@${REINPLACE_CMD} 's|lua >= 5.1|luajit|g' ${WRKSRC}/configure
-.else
- @${REINPLACE_CMD} 's|lua-5.1|lua-${LUA_VER}|g' ${WRKSRC}/configure
-.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
OpenPOWER on IntegriCloud