diff --git a/multimedia/qt5-multimedia/Makefile b/multimedia/qt5-multimedia/Makefile index c0517ed54392..9438dcc80ff4 100644 --- a/multimedia/qt5-multimedia/Makefile +++ b/multimedia/qt5-multimedia/Makefile @@ -1,61 +1,63 @@ PORTNAME= multimedia PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH} +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 perl5 pkgconfig qmake:norecursive \ qt-dist:5,multimedia xorg USE_GL= gl USE_GNOME= glib20 USE_PERL5= build 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-.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_RUN_DEPENDS= alsa-plugins>=0:audio/alsa-plugins 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_USES= gstreamer GSTREAMER_USE= GSTREAMER=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 diff --git a/multimedia/qt6-multimedia/Makefile b/multimedia/qt6-multimedia/Makefile index b8dc392fc0ca..3c766c04aa2d 100644 --- a/multimedia/qt6-multimedia/Makefile +++ b/multimedia/qt6-multimedia/Makefile @@ -1,68 +1,69 @@ PORTNAME= multimedia DISTVERSION= ${QT6_VERSION} CATEGORIES= multimedia PKGNAMEPREFIX= qt6- MAINTAINER= kde@FreeBSD.org COMMENT= Qt audio, video, radio and camera support module BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon USES= cmake compiler:c++17-lang gl localbase:ldflags pkgconfig qt-dist:6 USE_GL= opengl USE_QT= base declarative shadertools:build CFLAGS_powerpc= -DPFFFT_SIMD_DISABLE CXXFLAGS_powerpc64= -mvsx OPTIONS_DEFINE= FFMPEG GSTREAMER Q3D V4L VAAPI X11 OPTIONS_DEFAULT= FFMPEG GSTREAMER PULSEAUDIO Q3D V4L VAAPI X11 AUDIO_DESC= Low-level audio backend OPTIONS_SINGLE= AUDIO OPTIONS_SINGLE_AUDIO= ALSA PULSEAUDIO OPTIONS_SUB= yes ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib +ALSA_RUN_DEPENDS= alsa-plugins>=0:audio/alsa-plugins ALSA_CMAKE_BOOL= FEATURE_alsa FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg FFMPEG_CMAKE_BOOL= FEATURE_ffmpeg GSTREAMER_LIB_DEPENDS= libwayland-client.so:graphics/wayland # As of 2024-09-29, Mk/Uses/xorg.mk freaks out if no modules are defined # via USE_XORG, so FTTB, we must duplicate USES=xorg in the GSTREAMER # and X11 options and cannot hoist it to the main USES declaration as a # noop. GSTREAMER_USES= gnome gstreamer:1 xorg GSTREAMER_USE= GL=egl GNOME=glib20 GSTREAMER=bad,gl,good,ugly XORG=xcb GSTREAMER_CMAKE_BOOL= FEATURE_gstreamer \ FEATURE_gstreamer_1_0 \ FEATURE_gstreamer_app \ FEATURE_gstreamer_gl \ FEATURE_gstreamer_photography PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CMAKE_BOOL= FEATURE_pulseaudio Q3D_DESC= Spatial audio support via QtQuick3D Q3D_USE= QT=quick3d,shadertools Q3D_CMAKE_BOOL= FEATURE_spatialaudio_quick3d V4L_BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat V4L_CMAKE_BOOL= FEATURE_linux_v4l V4L_IMPLIES= ${"${PORT_OPTIONS:MFFMPEG}":?FFMPEG:GSTREAMER} VAAPI_LIB_DEPENDS= libva.so:multimedia/libva VAAPI_USE= GL=egl VAAPI_CMAKE_BOOL= FEATURE_vaapi VAAPI_IMPLIES= FFMPEG # We assume that the Qt stack has been built with consistent X11 options. # QT_FEATURE_xlib is defined globally by devel/qt6-base based upon whether # the X11 option was enabled in that port. X11_USES= xorg X11_USE= XORG=x11,xext,xrandr X11_IMPLIES= FFMPEG .include