Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2021 03:11:14 +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: r569608 - head/multimedia/simplescreenrecorder
Message-ID:  <202103310311.12V3BEct090579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Mar 31 03:11:13 2021
New Revision: 569608
URL: https://svnweb.freebsd.org/changeset/ports/569608

Log:
  multimedia/simplescreenrecorder: Improve and add to options
  
  * Add JACK option
  * Make ALSA off by default
  * Add V4L option for dependency on multimedia/libv4l
  * Add option group AUDIO

Modified:
  head/multimedia/simplescreenrecorder/Makefile

Modified: head/multimedia/simplescreenrecorder/Makefile
==============================================================================
--- head/multimedia/simplescreenrecorder/Makefile	Wed Mar 31 02:46:05 2021	(r569607)
+++ head/multimedia/simplescreenrecorder/Makefile	Wed Mar 31 03:11:13 2021	(r569608)
@@ -2,6 +2,7 @@
 
 PORTNAME=	simplescreenrecorder
 DISTVERSION=	0.4.3
+PORTREVISION=	1
 CATEGORIES=	multimedia
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,22 +12,25 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	v4l_compat>0:multimedia/v4l_compat
-LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg \
-		libv4l2.so:multimedia/libv4l
+LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg
 
 USES=		cmake compiler:c++11-lang pkgconfig qt:5 xorg
+USE_QT=		core gui widgets x11extras buildtools_build linguisttools_build qmake_build
+USE_XORG=	x11 xext xfixes xi xinerama
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	MaartenBaert
 GH_PROJECT=	ssr
-USE_QT=		core gui widgets x11extras buildtools_build linguisttools_build qmake_build
-USE_XORG=	x11 xext xfixes xi xinerama
 
 CMAKE_ON=	WITH_QT5
 CMAKE_OFF=	WITH_GLINJECT  # doesn't yet work on FreeBSD: https://github.com/MaartenBaert/ssr/issues/586#issuecomment-343780107
 CMAKE_OFF+=	WITH_OPENGL_RECORDING  # extra option requiried when GLInject is off, because this makes OpenGL recording dysfunctional
 
-OPTIONS_DEFINE=		ALSA PULSEAUDIO JACK
-OPTIONS_DEFAULT=	ALSA PULSEAUDIO
+OPTIONS_DEFINE=		V4L
+OPTIONS_MULTI=		AUDIO # MULTI because project doesn't allow to build with no backends
+OPTIONS_MULTI_AUDIO=	ALSA PULSEAUDIO JACK
+OPTIONS_DEFAULT=	PULSEAUDIO JACK V4L
+AUDIO_DESC=		Audio backends:
 
 ALSA_CMAKE_BOOL=	WITH_ALSA
 ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
@@ -36,6 +40,9 @@ PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
 
 JACK_CMAKE_BOOL=	WITH_JACK
 JACK_LIB_DEPENDS=	libjack.so:audio/jack
+
+V4L_CMAKE_BOOL=		WITH_V4L2
+V4L_LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
 
 post-install:  # https://github.com/MaartenBaert/ssr/issues/609
 	@${RM} ${STAGEDIR}${PREFIX}/man/man1/ssr-glinject.*



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