Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2014 20:06:57 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369750 - head/multimedia/libquvi
Message-ID:  <201410012006.s91K6vik080857@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Oct  1 20:06:56 2014
New Revision: 369750
URL: https://svnweb.freebsd.org/changeset/ports/369750
QAT: https://qat.redports.org/buildarchive/r369750/

Log:
  - Add LUAJIT option
  
  PR:		ports/193821
  Submitted by:	Jan Beich <jbeich@vfemail.net>

Modified:
  head/multimedia/libquvi/Makefile

Modified: head/multimedia/libquvi/Makefile
==============================================================================
--- head/multimedia/libquvi/Makefile	Wed Oct  1 20:06:51 2014	(r369749)
+++ head/multimedia/libquvi/Makefile	Wed Oct  1 20:06:56 2014	(r369750)
@@ -18,20 +18,30 @@ BUILD_DEPENDS=	libquvi-scripts>=0.4.0:${
 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}/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410012006.s91K6vik080857>