diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-10-01 20:06:56 +0000 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-10-01 20:06:56 +0000 |
commit | 04b1dc9e7fe967e5530df698d140ee1b0dee85ab (patch) | |
tree | ac84e876f35d3ac9fcc5dadd443be8c6ac732c73 | |
parent | d56e42778609009bfa649f041c26b75f22e1a84f (diff) | |
download | FreeBSD-ports-04b1dc9e7fe967e5530df698d140ee1b0dee85ab.zip FreeBSD-ports-04b1dc9e7fe967e5530df698d140ee1b0dee85ab.tar.gz |
- Add LUAJIT option
PR: ports/193821
Submitted by: Jan Beich <jbeich@vfemail.net>
-rw-r--r-- | multimedia/libquvi/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/multimedia/libquvi/Makefile b/multimedia/libquvi/Makefile index 7f7c752..9e4aaec 100644 --- a/multimedia/libquvi/Makefile +++ b/multimedia/libquvi/Makefile @@ -18,20 +18,30 @@ BUILD_DEPENDS= libquvi-scripts>=0.4.0:${PORTSDIR}/multimedia/libquvi-scripts LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl RUN_DEPENDS:= ${BUILD_DEPENDS} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS LUAJIT +LUAJIT_DESC= Use LuaJIT instead of Lua PORTSCOUT= limit:0.4.[0-9]* CPPFLAGS+= -I${LOCALBASE}/include GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -USES= iconv libtool lua pathfix pkgconfig tar:xz +USES= iconv libtool pathfix pkgconfig tar:xz USE_LDCONFIG= yes PROJECTHOST= quvi +LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit +LUAJIT_USES_OFF= lua + +.include <bsd.port.options.mk> + post-patch: - @${REINPLACE_CMD} 's/lua-5.1/lua-${LUA_VER}/g' ${WRKSRC}/configure +.if ${PORT_OPTIONS:MLUAJIT} + @${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}/ |