aboutsummaryrefslogtreecommitdiff
path: root/multimedia/qt5-multimedia
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2018-01-07 14:34:38 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2018-01-07 14:34:38 +0000
commit075bae5728c134d2e43d09325f02d57e8e158696 (patch)
tree55774102b84c910de9d8e5c7adeb9006e6b608da /multimedia/qt5-multimedia
parent823c54be33e0fda4edbe0480c9b753bd96ffa812 (diff)
downloadports-075bae5728c134d2e43d09325f02d57e8e158696.tar.gz
ports-075bae5728c134d2e43d09325f02d57e8e158696.zip
Notes
Diffstat (limited to 'multimedia/qt5-multimedia')
-rw-r--r--multimedia/qt5-multimedia/Makefile28
-rw-r--r--multimedia/qt5-multimedia/files/extrapatch-no-gstreamer24
-rw-r--r--multimedia/qt5-multimedia/files/patch-src_multimedia_configure.json11
3 files changed, 23 insertions, 40 deletions
diff --git a/multimedia/qt5-multimedia/Makefile b/multimedia/qt5-multimedia/Makefile
index c31dfb039114..c832aece874e 100644
--- a/multimedia/qt5-multimedia/Makefile
+++ b/multimedia/qt5-multimedia/Makefile
@@ -2,6 +2,7 @@
PORTNAME= multimedia
DISTVERSION= ${QT5_VERSION}
+PORTREVISION= 1
CATEGORIES= multimedia
PKGNAMEPREFIX= qt5-
@@ -19,7 +20,6 @@ QT_DIST= ${PORTNAME}
USE_XORG= x11 xext xv
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
-QT_DEFINES= XVIDEO
QT_CONFIG= xlib
OPTIONS_DEFINE= GSTREAMER OPENAL
@@ -32,24 +32,20 @@ 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
+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_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
+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
OPENAL_USES= openal
-OPENAL_VARS_OFF= TBR_DEPENDS+=openal
+OPENAL_VARS_OFF= QMAKE_CONFIGURE_ARGS+=-no-openal
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
-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
-.endfor
+PULSEAUDIO_VARS= QT_CONFIG+=pulseaudio
+PULSEAUDIO_VARS_OFF= QT_CONFIG+=-pulseaudio \
+ QMAKE_CONFIGURE_ARGS+=-no-pulseaudio
.include <bsd.port.mk>
diff --git a/multimedia/qt5-multimedia/files/extrapatch-no-gstreamer b/multimedia/qt5-multimedia/files/extrapatch-no-gstreamer
deleted file mode 100644
index 737051d77e17..000000000000
--- a/multimedia/qt5-multimedia/files/extrapatch-no-gstreamer
+++ /dev/null
@@ -1,24 +0,0 @@
---- qtmultimedia.pro.orig 2015-12-25 21:09:16 UTC
-+++ qtmultimedia.pro
-@@ -18,21 +18,6 @@ win32 {
- contains(QT_CONFIG, alsa):qtCompileTest(alsa)
- contains(QT_CONFIG, pulseaudio):qtCompileTest(pulseaudio)
-
-- isEmpty(GST_VERSION) {
-- contains(QT_CONFIG, gstreamer-0.10) {
-- GST_VERSION = 0.10
-- } else: contains(QT_CONFIG, gstreamer-1.0) {
-- GST_VERSION = 1.0
-- }
-- }
-- cache(GST_VERSION, set)
-- !isEmpty(GST_VERSION):qtCompileTest(gstreamer) {
-- qtCompileTest(gstreamer_photography)
-- qtCompileTest(gstreamer_encodingprofiles)
-- qtCompileTest(gstreamer_appsrc)
-- qtCompileTest(linux_v4l)
-- }
--
- qtCompileTest(resourcepolicy)
- qtCompileTest(gpu_vivante)
- }
diff --git a/multimedia/qt5-multimedia/files/patch-src_multimedia_configure.json b/multimedia/qt5-multimedia/files/patch-src_multimedia_configure.json
new file mode 100644
index 000000000000..5b25a994100f
--- /dev/null
+++ b/multimedia/qt5-multimedia/files/patch-src_multimedia_configure.json
@@ -0,0 +1,11 @@
+Make it possible to disable OpenAL support via a command-line option.
+--- src/multimedia/configure.json
++++ src/multimedia/configure.json
+@@ -9,6 +9,7 @@
+ "options": {
+ "alsa": "boolean",
+ "gstreamer": { "type": "optionalString", "values": [ "no", "yes", "0.10", "1.0" ] },
++ "openal": "boolean",
+ "pulseaudio": "boolean",
+ "mediaplayer-backend": { "type": "string", "values": [ "directshow", "wmf" ] },
+ "wmf-backend": { "type": "void", "name": "mediaplayer-backend", "value": "wmf" }