svn commit: r369750 - head/multimedia/libquvi

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed Oct 1 20:06:57 UTC 2014


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 at 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}/


More information about the svn-ports-all mailing list