aboutsummaryrefslogtreecommitdiff
path: root/multimedia/QtAV/Makefile
blob: 0b76a208b3a82681398377331dd4ddfdb9b97a11 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
# $FreeBSD$

PORTNAME=		QtAV
PORTVERSION=		1.11.0
DISTVERSIONPREFIX=	v
CATEGORIES=		multimedia
DIST_SUBDIR=		KDE

MAINTAINER=		kde@FreeBSD.org
COMMENT=		Cross-platform multimedia framwork based on Qt and ffmpeg

LICENSE=		LGPL21+
LICENSE_FIKE=		${WRKSRC}/lgpl-2.1.txt

LIB_DEPENDS=		libass.so:multimedia/libass \
			libavcodec.so:multimedia/ffmpeg

USES=			qmake:outsource
USE_GL=			gl
USE_QT5=		core gui network opengl qml quick sql widgets \
			buildtools_build qmake_build
USE_XORG=		x11 xext xv

OPTIONS_DEFINE=		OPENAL UCHARDET VAAPI PULSEAUDIO
OPTIONS_DEFAULT=	OPENAL UCHARDET VAAPI
OPTIONS_SUB=		yes

OPENAL_LIB_DEPENDS=	libopenal.so:audio/openal-soft
OPENAL_QMAKE_OFF=	CONFIG+=no-openal

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_QMAKE_OFF=	CONFIG+=no-pulseaudio

UCHARDET_DESC=		Guess subtitle encoding via uchardet
UCHARDET_LIB_DEPENDS=	libuchardet.so:textproc/uchardet
UCHARDET_QMAKE_OFF=	CONFIG+=no-uchardet

VAAPI_LIB_DEPENDS=	libva.so:multimedia/libva
VAAPI_QMAKE_OFF=	CONFIG+=no-vaapi

PLIST_SUB=		QT_VERSION="${_QT_VERSION}"

USE_GITHUB=		yes
GH_ACCOUNT=		wang-bin

# The examples are GLPv3 licencensed and have too generic names, like 'Player',
# so don't install them.
QMAKE_ARGS=		CONFIG+=no-examples

.include <bsd.port.mk>