aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorjrm <jrm@FreeBSD.org>2017-10-13 06:52:52 +0800
committerjrm <jrm@FreeBSD.org>2017-10-13 06:52:52 +0800
commitd022035fc3f6de3f34384d89cc68ead93d9003f0 (patch)
tree7eb2a6986ee4543daab2fd276097a8f90aa38917 /multimedia
parentef312ae0dcccde797b41f85336ba37934045d29d (diff)
downloadfreebsd-ports-gnome-d022035fc3f6de3f34384d89cc68ead93d9003f0.tar.gz
freebsd-ports-gnome-d022035fc3f6de3f34384d89cc68ead93d9003f0.tar.zst
freebsd-ports-gnome-d022035fc3f6de3f34384d89cc68ead93d9003f0.zip
multimedia/qt5-multimedia: Use option helpers and turn on ALSA option by
default. This is the first update required to fix audio is some dependencies like comms/wsjtx. See also PR 208570. Reported by: adrian Approved by: tcberner, rakuco Differential Revision: https://reviews.freebsd.org/D12480
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/qt5-multimedia/Makefile66
1 files changed, 23 insertions, 43 deletions
diff --git a/multimedia/qt5-multimedia/Makefile b/multimedia/qt5-multimedia/Makefile
index ca0c34c66c32..e39d8672c77f 100644
--- a/multimedia/qt5-multimedia/Makefile
+++ b/multimedia/qt5-multimedia/Makefile
@@ -2,75 +2,55 @@
PORTNAME= multimedia
DISTVERSION= ${QT5_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt audio, video, radio and camera support module
-USE_GL= yes
+# LICENSE set via USES_QT5 (bsd.qt.mk)
+
+USES= pkgconfig qmake
+USE_GL= gl
+USE_GNOME= glib20
USE_QT5= core gui network opengl qml quick widgets \
buildtools_build
QT_DIST= ${PORTNAME}
USE_XORG= x11 xext xv
-USES= pkgconfig qmake
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
QT_DEFINES= XVIDEO
QT_CONFIG= xlib
-OPTIONS_DEFINE= AUDIOPLUGIN GSTREAMER OPENAL
-OPTIONS_DEFAULT= GSTREAMER
-OPTIONS_RADIO= AUDIOPLUGIN
-OPTIONS_RADIO_AUDIOPLUGIN= ALSA PULSEAUDIO
+OPTIONS_DEFINE= GSTREAMER OPENAL
+OPTIONS_DEFAULT= ALSA GSTREAMER
+OPTIONS_MULTI= AUDIOPLUGIN
+OPTIONS_MULTI_AUDIOPLUGIN= ALSA PULSEAUDIO
OPTIONS_SUB= yes
-AUDIOPLUGIN_DESC= Audio plugins to build
+
+AUDIOPLUGIN_DESC= Audio plugins to build
+OPENAL_DESC= 3D positional spatialized sound support
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
+ALSA_VARS= QT_CONFIG+=alsa QT DEFINES+=ALSA
+ALSA_VARS_OFF= QT_CONFIG+=-alsa QT_DEFINES+=-ALSA TBR_DEPENDS+=alsa
GSTREAMER_BUILD_DEPENDS=${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
GSTREAMER_EXTRA_PATCHES_OFF= ${FILESDIR}/extrapatch-no-gstreamer
GSTREAMER_USE= GSTREAMER1=bad
+GSTREAMER_VARS= QT_CONFIG+=gstreamer-1.0 QT_DEFINES+=GSTREAMER
+GSTREAMER_VARS_OFF= QT_CONFIG+=-gstreamer-1.0 QT_DEFINES+=-GSTREAMER \
+ TBR_DEPENDS+=gstreamer
OPENAL_USES= openal
+OPENAL_VARS_OFF= TBR_DEPENDS+=openal
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MALSA}
-QT_DEFINES+= ALSA
-QT_CONFIG+= alsa
-.else
-TBR_DEPENDS+= alsa
-QT_DEFINES+= -ALSA
-QT_CONFIG+= -alsa
-.endif
-
-.if ${PORT_OPTIONS:MGSTREAMER}
-QT_DEFINES+= GSTREAMER
-QT_CONFIG+= gstreamer-1.0
-.else
-TBR_DEPENDS+= gstreamer
-QT_DEFINES+= -GSTREAMER
-QT_CONFIG+= -gstreamer-1.0
-.endif
-
-.if ! ${PORT_OPTIONS:MOPENAL}
-TBR_DEPENDS+= openal
-.endif
-
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-QT_DEFINES+= PULSEAUDIO
-QT_CONFIG+= pulseaudio
-.else
-TBR_DEPENDS+= pulseaudio
-QT_DEFINES+= -PULSEAUDIO
-QT_CONFIG+= -pulseaudio
-.endif
+PULSEAUDIO_VARS= QT_CONFIG+=pulseaudio QT_DEFINES+=PULSEAUDIO
+PULSEAUDIO_VARS_OFF= QT_CONFIG+=-pulseaudio QT_DEFINES+=-PULSEAUDIO \
+ TBR_DEPENDS+=pulseaudio
post-patch:
.for d in ${TBR_DEPENDS}
- @${REINPLACE_CMD} -e '/${d}/ d' \
- ${WRKSRC}/qtmultimedia.pro
+ @${REINPLACE_CMD} -e '/${d}/ d' ${WRKSRC}/qtmultimedia.pro
.endfor
.include <bsd.port.mk>