Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2018 00:09:28 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474043 - head/multimedia/cinelerra-gg
Message-ID:  <201807070009.w6709S5h013858@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jul  7 00:09:28 2018
New Revision: 474043
URL: https://svnweb.freebsd.org/changeset/ports/474043

Log:
  multimedia/cinelerra-gg: Add the LV2 option to use LV2 plugins.

Modified:
  head/multimedia/cinelerra-gg/Makefile
  head/multimedia/cinelerra-gg/pkg-plist

Modified: head/multimedia/cinelerra-gg/Makefile
==============================================================================
--- head/multimedia/cinelerra-gg/Makefile	Fri Jul  6 23:56:13 2018	(r474042)
+++ head/multimedia/cinelerra-gg/Makefile	Sat Jul  7 00:09:28 2018	(r474043)
@@ -3,6 +3,7 @@
 PORTNAME=	cinelerra-gg
 DISTVERSION=	5.1-20180705
 DISTVERSIONSUFFIX=	-${REV:C/(.......).*/\1/}
+PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	https://git.cinelerra-cv.org/gitweb?p=goodguy/cinelerra.git;a=snapshot;h=${REV};sf=tgz;dummy=/ # tarballs are @ https://cinelerra-cv.org/five/pkgs/src/
 
@@ -52,7 +53,7 @@ GNU_CONFIGURE=	yes
 USE_XORG=	x11 xau xdmcp xext xfixes xft xinerama xv
 
 MAKE_ENV=	C_INCLUDE_PATH=${LOCALBASE}/include CPLUS_INCLUDE_PATH=${LOCALBASE}/include LIBRARY_PATH=${LOCALBASE}/lib
-CONFIGURE_ARGS=	--disable-static-build --without-lv2 --disable-lame --disable-twolame \
+CONFIGURE_ARGS=	--disable-static-build --disable-lame --disable-twolame \
 		--with-oss --without-alsa \
 		--without-gl --without-firewire --without-dv --without-dvb \
 		--without-video4linux2 --without-xxf86vm --without-ladspa-build \
@@ -68,6 +69,22 @@ INSTALL_WRKSRC=		${BUILD_WRKSRC}
 
 DATADIR=		${PREFIX}/share/cin
 
+OPTIONS_DEFINE=		LV2
+OPTIONS_DEFAULT=	LV2
+OPTIONS_SUB=		yes
+
+LV2_DESC=		Use LV2 plugins
+LV2_CONFIGURE_WITH=	lv2
+LV2_USES=		pkgconfig
+LV2_USE=		GNOME=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
+LV2_CFLAGS=		-I${LOCALBASE}/include/lilv-0 -I${LOCALBASE}/include/suil-0
+LV2_BUILD_DEPENDS=	lv2>0:audio/lv2
+LV2_LIB_DEPENDS=	liblilv-0.so:audio/lilv \
+			libserd-0.so:devel/serd \
+			libsord-0.so:devel/sord \
+			libsratom-0.so:audio/sratom \
+			libsuil-0.so:audio/suil
+
 post-patch:
 	# the patch recommended by the upstream
 	@cd ${CONFIGURE_WRKSRC}/ffmpeg && \
@@ -75,6 +92,9 @@ post-patch:
 	# correct the bash interpreter path
 	@cd ${CONFIGURE_WRKSRC}/cinelerra && ${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
 		../configure.ac bdcreate.C dvdcreate.C shbtnprefs.C
+
+post-install-LV2-on:
+	@${RMDIR} ${STAGEDIR}${DATADIR}/lv2
 
 do-configure: # configure needs bash
 	@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/bash configure ${CONFIGURE_ARGS}

Modified: head/multimedia/cinelerra-gg/pkg-plist
==============================================================================
--- head/multimedia/cinelerra-gg/pkg-plist	Fri Jul  6 23:56:13 2018	(r474042)
+++ head/multimedia/cinelerra-gg/pkg-plist	Sat Jul  7 00:09:28 2018	(r474043)
@@ -1,5 +1,6 @@
 bin/bdwrite
 bin/cin
+%%LV2%%lib/cin/lv2ui
 lib/cin/plugins/audio/audioscope.plugin
 lib/cin/plugins/audio/compressor.plugin
 lib/cin/plugins/audio/dcoffset.plugin
@@ -1163,6 +1164,7 @@ share/applications/cin.desktop
 %%DATADIR%%/ffmpeg/video/youtube.dfl
 %%DATADIR%%/ffmpeg/video/yuv.dfl
 %%DATADIR%%/info/plugins.txt
+%%LV2%%%%DATADIR%%/lv2_blacklist.txt
 %%DATADIR%%/models/amazon01
 %%DATADIR%%/models/amazon01.xcf.bz2
 %%DATADIR%%/models/amazon01_body.png



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