summaryrefslogtreecommitdiff
path: root/multimedia/qt5-multimedia/Makefile
blob: 08c366ea361598fa670ef48fa5395322820c4b7d (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PORTNAME=	multimedia
DISTVERSION=	${QT5_VERSION}
PORTREVISION=	1
CATEGORIES=	multimedia
PKGNAMEPREFIX=	qt5-

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt audio, video, radio and camera support module

# LICENSE set via USES_QT5 (bsd.qt.mk)

USES=		compiler:c++11-lang gl gnome pkgconfig qmake:norecursive \
		qt-dist:5,multimedia xorg
USE_GL=		gl
USE_GNOME=	glib20
USE_QT=		core declarative gui network opengl widgets \
		buildtools_build
USE_XORG=	x11 xext xv

QT_CONFIG=	xlib

# TODO: Bug 225100: the machinery in bsd.qt.mk's qt-post-install target does
# not seem to account for the case of a module no longer defining QT_DEFINES:
# the lines in qconfig-modules.h including said module's qconfig-<module>.h
# will remain. We're setting it below to avoid build errors, but this needs to
# be fixed properly later.
QT_DEFINES=	_QTMULTIMEDIA_DUMMY

OPTIONS_DEFINE=			GSTREAMER OPENAL
OPTIONS_DEFAULT=		ALSA GSTREAMER OPENAL
OPTIONS_GROUP=			AUDIOPLUGIN
OPTIONS_GROUP_AUDIOPLUGIN=	ALSA PULSEAUDIO
OPTIONS_SUB=			yes

AUDIOPLUGIN_DESC=	Audio plugins to build

OPENAL_DESC=		3D positional spatialized sound support
OPENAL_USES=		openal
OPENAL_VARS=		QT_CONFIG+=openal
OPENAL_VARS_OFF=	QT_CONFIG+=-openal \
			QMAKE_CONFIGURE_ARGS+=-no-openal

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_VARS=		QT_CONFIG+=alsa
ALSA_VARS_OFF=		QT_CONFIG+=-alsa \
			QMAKE_CONFIGURE_ARGS+=-no-alsa

GSTREAMER_BUILD_DEPENDS=${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
GSTREAMER_USE=		GSTREAMER1=bad
GSTREAMER_VARS=		QT_CONFIG+=gstreamer-1.0 \
			QMAKE_CONFIGURE_ARGS+=-gstreamer 1.0
GSTREAMER_VARS_OFF=	QT_CONFIG+=-gstreamer-1.0 \
			QMAKE_CONFIGURE_ARGS+=-no-gstreamer

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_VARS=	QT_CONFIG+=pulseaudio
PULSEAUDIO_VARS_OFF=	QT_CONFIG+=-pulseaudio \
			QMAKE_CONFIGURE_ARGS+=-no-pulseaudio

.include <bsd.port.mk>