summaryrefslogtreecommitdiff
path: root/multimedia/simplescreenrecorder/Makefile
blob: e08e97e9ff8f942d8ecd61df5c51ba3a624a4b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $FreeBSD$

PORTNAME=	simplescreenrecorder
DISTVERSION=	0.3.11
PORTREVISION=	1
CATEGORIES=	multimedia

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Screen video recorder

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libasound.so:audio/alsa-lib \
		libavformat.so:multimedia/ffmpeg

USES=		cmake pkgconfig qt:5
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

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=		PULSEAUDIO JACK
OPTIONS_DEFAULT=	PULSEAUDIO

PULSEAUDIO_CMAKE_BOOL=	WITH_PULSEAUDIO
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio

JACK_CMAKE_BOOL=	WITH_JACK
JACK_LIB_DEPENDS=	libjack.so:audio/jack

post-install:  # https://github.com/MaartenBaert/ssr/issues/609
	@${RM} ${STAGEDIR}${PREFIX}/man/man1/ssr-glinject.*

.include <bsd.port.mk>