diff --git a/multimedia/Makefile b/multimedia/Makefile index 1646fd0dda9f..6f41b14bb2e9 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -1,419 +1,420 @@ COMMENT = Multimedia software SUBDIR += Bento4 SUBDIR += ab-av1 SUBDIR += ab25 SUBDIR += alass SUBDIR += aom SUBDIR += aravis SUBDIR += arcan SUBDIR += aribb24 SUBDIR += asdcplib SUBDIR += assimp SUBDIR += atomicparsley SUBDIR += audacious SUBDIR += audacious-plugins SUBDIR += av1an SUBDIR += avidemux SUBDIR += avidemux-cli SUBDIR += avidemux-plugins SUBDIR += avidemux-qt5 SUBDIR += baka-mplayer SUBDIR += bcmatroska2 SUBDIR += bino SUBDIR += bitstream SUBDIR += blind SUBDIR += btavctpd SUBDIR += butt SUBDIR += ccextractor SUBDIR += celluloid SUBDIR += cheese SUBDIR += chilitags SUBDIR += cineencoder SUBDIR += clapper SUBDIR += clutter-gst SUBDIR += clutter-gst3 SUBDIR += cmrt SUBDIR += cmrtlib SUBDIR += cx88 SUBDIR += dav1d SUBDIR += deforaos-camera SUBDIR += deforaos-player SUBDIR += dovi_tool SUBDIR += dragon SUBDIR += droidcam SUBDIR += dtv-scan-tables SUBDIR += dv2sub SUBDIR += dvb-apps SUBDIR += dvbsnoop SUBDIR += dvd-slideshow SUBDIR += dvdauthor SUBDIR += dvdid SUBDIR += dvdread SUBDIR += elementary-videos SUBDIR += emby-server SUBDIR += ffaudioconverter SUBDIR += ffdec SUBDIR += ffmpeg SUBDIR += ffmpeg3 SUBDIR += ffmpeg4 SUBDIR += ffmpeg6 SUBDIR += ffmpegthumbnailer SUBDIR += ffms2 SUBDIR += ffnvcodec-headers SUBDIR += filebot SUBDIR += flvmeta SUBDIR += fswebcam SUBDIR += funnelcake SUBDIR += gaupol SUBDIR += gavl SUBDIR += get_iplayer SUBDIR += gmmlib SUBDIR += gmp-api SUBDIR += go2tv SUBDIR += gpac SUBDIR += gpodder SUBDIR += gst123 SUBDIR += gstreamer1 SUBDIR += gstreamer1-editing-services SUBDIR += gstreamer1-libav SUBDIR += gstreamer1-plugins SUBDIR += gstreamer1-plugins-all SUBDIR += gstreamer1-plugins-aom SUBDIR += gstreamer1-plugins-assrender SUBDIR += gstreamer1-plugins-bad SUBDIR += gstreamer1-plugins-core SUBDIR += gstreamer1-plugins-dash SUBDIR += gstreamer1-plugins-dts SUBDIR += gstreamer1-plugins-dv SUBDIR += gstreamer1-plugins-dvdread SUBDIR += gstreamer1-plugins-good SUBDIR += gstreamer1-plugins-hls SUBDIR += gstreamer1-plugins-libde265 SUBDIR += gstreamer1-plugins-mpeg2dec SUBDIR += gstreamer1-plugins-mpeg2enc SUBDIR += gstreamer1-plugins-mplex SUBDIR += gstreamer1-plugins-msdk SUBDIR += gstreamer1-plugins-openh264 SUBDIR += gstreamer1-plugins-resindvd SUBDIR += gstreamer1-plugins-rust SUBDIR += gstreamer1-plugins-smoothstreaming SUBDIR += gstreamer1-plugins-svt-av1 SUBDIR += gstreamer1-plugins-svt-vp9 SUBDIR += gstreamer1-plugins-theora SUBDIR += gstreamer1-plugins-ttml SUBDIR += gstreamer1-plugins-ugly SUBDIR += gstreamer1-plugins-v4l2 SUBDIR += gstreamer1-plugins-vpx SUBDIR += gstreamer1-plugins-webrtc SUBDIR += gstreamer1-plugins-x264 SUBDIR += gstreamer1-plugins-x265 SUBDIR += gstreamer1-rtsp-server SUBDIR += gstreamermm SUBDIR += gtk-pipe-viewer SUBDIR += gtk-youtube-viewer SUBDIR += guvcview SUBDIR += hana SUBDIR += handbrake SUBDIR += haruna SUBDIR += harvid SUBDIR += hdrprobe SUBDIR += helvum SUBDIR += hyprpwcenter SUBDIR += intel-media-sdk SUBDIR += iso2mkv SUBDIR += jellyfin SUBDIR += jellyfin-desktop SUBDIR += jmref SUBDIR += kaffeine SUBDIR += kamoso SUBDIR += kasts SUBDIR += kdemultimedia SUBDIR += kdemultimedia-ffmpegthumbs SUBDIR += kdenlive SUBDIR += kew SUBDIR += kf5-kmediaplayer SUBDIR += kmplayer SUBDIR += kodi SUBDIR += kodi-addon-inputstream.adaptive SUBDIR += kodi-addon-peripheral.joystick SUBDIR += kodi-addon-pvr.hts SUBDIR += kodi-addon-pvr.iptvsimple SUBDIR += kodi-addon-screensaver.biogenesis SUBDIR += kodi-addon-screensaver.matrixtrails SUBDIR += kodi-addon-screensaver.stars SUBDIR += kodi-addon-visualization.fishbmc SUBDIR += kodi-addon-visualization.projectm SUBDIR += kodi-addon-visualization.shadertoy SUBDIR += kodi-addon-visualization.spectrum SUBDIR += kooha SUBDIR += kvazaar SUBDIR += l-smash SUBDIR += lebiniou SUBDIR += lebiniou-data SUBDIR += libaacs SUBDIR += libass SUBDIR += libbdplus SUBDIR += libbluray SUBDIR += libcec SUBDIR += libdc1394 SUBDIR += libdca SUBDIR += libdcadec SUBDIR += libde265 SUBDIR += libdv SUBDIR += libdvbcsa SUBDIR += libdvbpsi SUBDIR += libdvdcss SUBDIR += libdvdnav SUBDIR += libdvdread SUBDIR += libgav1 SUBDIR += libhdhomerun SUBDIR += libmatroska SUBDIR += libmediaart SUBDIR += libmediainfo SUBDIR += libmpeg2 SUBDIR += libmtp SUBDIR += libndi SUBDIR += libopenshot SUBDIR += librav1e SUBDIR += librespot SUBDIR += librist SUBDIR += libtheora SUBDIR += libtuner SUBDIR += libudfread SUBDIR += libuvc SUBDIR += libv4l SUBDIR += libva SUBDIR += libva-intel-driver SUBDIR += libva-intel-hybrid-driver SUBDIR += libva-intel-media-driver SUBDIR += libva-nvidia-driver SUBDIR += libva-utils SUBDIR += libva-vdpau-driver SUBDIR += libvdpau SUBDIR += libvdpau-va-gl SUBDIR += libvlcpp SUBDIR += libvpl + SUBDIR += libvpl-tools SUBDIR += libvpx SUBDIR += libwebm SUBDIR += libx264 SUBDIR += libxine SUBDIR += libxspf SUBDIR += libzen SUBDIR += linux-c7-libtheora SUBDIR += linux-c7-libv4l SUBDIR += linux-rl9-aom SUBDIR += linux-rl9-ffmpeg SUBDIR += linux-rl9-gstreamer1 SUBDIR += linux-rl9-gstreamer1-libav SUBDIR += linux-rl9-libtheora SUBDIR += linux-rl9-libv4l SUBDIR += linux-rl9-libva SUBDIR += linux-rl9-libvdpau SUBDIR += linux-rl9-libvpx SUBDIR += linux-rl9-qt5-qtmultimedia SUBDIR += linux-rl9-vmaf SUBDIR += linux-tsmuxer SUBDIR += linux_dvbwrapper-kmod SUBDIR += livego SUBDIR += lives SUBDIR += lms SUBDIR += lsdvd SUBDIR += m2vrequantiser SUBDIR += makemkv SUBDIR += mediaelch SUBDIR += mediainfo SUBDIR += mediamtx SUBDIR += mencoder SUBDIR += minisatip SUBDIR += minitube SUBDIR += mjpegtools SUBDIR += mkclean SUBDIR += mkvalidator SUBDIR += mkvtoolnix SUBDIR += mlt7 SUBDIR += mlt7-glaxnimate SUBDIR += mlt7-qt SUBDIR += moonshine SUBDIR += motion SUBDIR += mp3cd SUBDIR += mp4v2 SUBDIR += mpc-qt SUBDIR += mplayer SUBDIR += mplayer-skins SUBDIR += mplex SUBDIR += mpv SUBDIR += mpv-mpris SUBDIR += mpvpaper SUBDIR += mpvqt SUBDIR += msopenh264 SUBDIR += mswebrtc SUBDIR += musikcube SUBDIR += musique SUBDIR += mxflib SUBDIR += mythtv SUBDIR += naludump SUBDIR += navidrome SUBDIR += neolink SUBDIR += nostt SUBDIR += nymphcastlib SUBDIR += nymphrpc SUBDIR += obs-multi-rtmp SUBDIR += obs-studio SUBDIR += obs-text-pthread SUBDIR += obs-waveform SUBDIR += obuparse SUBDIR += oggvideotools SUBDIR += ogmtools SUBDIR += olive SUBDIR += onevpl SUBDIR += openh264 SUBDIR += openshot SUBDIR += opentimelineio SUBDIR += opentoonz SUBDIR += oscam SUBDIR += ossia-score SUBDIR += p5-Audio-M4P SUBDIR += p5-FFmpeg-Command SUBDIR += p5-FLV-Info SUBDIR += p5-File-Format-RIFF SUBDIR += p5-MP4-Info SUBDIR += p5-Net-UPnP SUBDIR += p5-Subtitles SUBDIR += peek SUBDIR += phonon SUBDIR += phonon-designerplugin SUBDIR += phonon-mpv SUBDIR += phonon-vlc SUBDIR += photofilmstrip SUBDIR += pipe-viewer SUBDIR += pipewire SUBDIR += pitivi SUBDIR += plasmatube SUBDIR += playerctl SUBDIR += plexmediaserver SUBDIR += plexmediaserver-plexpass SUBDIR += podcastdl SUBDIR += poe SUBDIR += ptx-kmod SUBDIR += pwcbsd SUBDIR += pwcview SUBDIR += py-av SUBDIR += py-cec SUBDIR += py-enzyme SUBDIR += py-gstreamer1 SUBDIR += py-guessit SUBDIR += py-knowit SUBDIR += py-mat2 SUBDIR += py-metadata-cleaner SUBDIR += py-mido SUBDIR += py-moviepy SUBDIR += py-opentimelineio SUBDIR += py-periscope SUBDIR += py-pretty_midi SUBDIR += py-pymediainfo SUBDIR += py-pysubs2 SUBDIR += py-python-mpv SUBDIR += py-pytube SUBDIR += py-scenedetect SUBDIR += py-soco SUBDIR += py-srt SUBDIR += py-subliminal SUBDIR += py-tartube SUBDIR += py-torchcodec SUBDIR += py-trakit SUBDIR += py-ustreamer SUBDIR += qmmp-plugin-pack-qt5 SUBDIR += qmmp-plugin-pack-qt6 SUBDIR += qmmp-qt5 SUBDIR += qmmp-qt6 SUBDIR += qpwgraph SUBDIR += qt5-multimedia SUBDIR += qt6-multimedia SUBDIR += quodlibet SUBDIR += qwinff SUBDIR += rage SUBDIR += rav1e SUBDIR += recordmydesktop SUBDIR += replex SUBDIR += ringrtc SUBDIR += rubygem-av SUBDIR += rubygem-clutter-gstreamer SUBDIR += rubygem-flvtool2 SUBDIR += rubygem-gstreamer SUBDIR += rubygem-streamio-ffmpeg SUBDIR += scte35dump SUBDIR += shaka-packager SUBDIR += shotcut SUBDIR += shotcut-qt6 SUBDIR += showtime SUBDIR += simplescreenrecorder SUBDIR += smelter SUBDIR += smpeg SUBDIR += smpeg2 SUBDIR += smplayer SUBDIR += smplayer-skins SUBDIR += smplayer-themes SUBDIR += snapcast SUBDIR += streamlink SUBDIR += subtitlecomposer SUBDIR += subtitleoffsetmodifier SUBDIR += subtools SUBDIR += supersonic SUBDIR += svt-av1 SUBDIR += svt-av1-hdr SUBDIR += svt-hevc SUBDIR += svt-vp9 SUBDIR += syncplay SUBDIR += szap-s2 SUBDIR += tautulli SUBDIR += tenacity SUBDIR += termplay SUBDIR += termusic SUBDIR += tinyobjloader SUBDIR += tivodecode SUBDIR += totem SUBDIR += totem-pl-parser SUBDIR += tsduck SUBDIR += tvheadend SUBDIR += ustreamer SUBDIR += uvg266 SUBDIR += uxplay SUBDIR += v4l-utils SUBDIR += v4l_compat SUBDIR += vamps SUBDIR += vapoursynth SUBDIR += vapoursynth-l-smash-works SUBDIR += vapoursynth-vmaf SUBDIR += vcdgear SUBDIR += vcdimager SUBDIR += vdpauinfo SUBDIR += vid.stab SUBDIR += video-trimmer SUBDIR += vlc SUBDIR += vmaf SUBDIR += vvdec SUBDIR += vvenc SUBDIR += w_scan2 SUBDIR += webcamd SUBDIR += webcamoid SUBDIR += wf-recorder SUBDIR += winff SUBDIR += wireplumber SUBDIR += wl-screenrec SUBDIR += wlrobs SUBDIR += x264 SUBDIR += x265 SUBDIR += xanim SUBDIR += xawtv SUBDIR += xfce4-parole SUBDIR += xine SUBDIR += xporthdmv SUBDIR += xvid SUBDIR += yamdi SUBDIR += youtui SUBDIR += ytfzf SUBDIR += zart SUBDIR += zoneminder .include diff --git a/multimedia/libvpl-tools/Makefile b/multimedia/libvpl-tools/Makefile new file mode 100644 index 000000000000..006c39057ee2 --- /dev/null +++ b/multimedia/libvpl-tools/Makefile @@ -0,0 +1,43 @@ +PORTNAME= libvpl-tools +DISTVERSIONPREFIX= v +DISTVERSION= 1.6.0 +CATEGORIES= multimedia + +MAINTAINER= naito.yuichiro@gmail.com +COMMENT= Intel Video Processing Library Tools +WWW= https://www.intel.com/content/www/us/en/developer/tools/vpl/overview.html + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON= only Intel GPUs on x86 are supported + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +# libgtkmm-4.0.so and libgtk-4.so are listed here instead of using +# USE_GNOME to avoid an extraneous dependency on libatk-1.0.so, +# which is not used in this port. +LIB_DEPENDS= libva.so:multimedia/libva \ + libvpl.so:multimedia/libvpl \ + libdrm.so:graphics/libdrm \ + libgraphene-1.0.so:graphics/graphene \ + libvulkan.so:graphics/vulkan-loader \ + libepoxy.so:graphics/libepoxy \ + libwayland-client.so:graphics/wayland \ + libgtkmm-4.0.so:x11-toolkits/gtkmm40 \ + libgtk-4.so:x11-toolkits/gtk40 + +USES= cmake:testing compiler:c++17-lang localbase:ldflags pkgconfig \ + xorg gl gnome gettext-runtime +USE_CXXSTD= c++17 +USE_GITHUB= yes +GH_ACCOUNT= intel +USE_GL= opengl +USE_GNOME= glib20 gdkpixbuf pango cairo cairomm11 pangomm24 +USE_LDCONFIG= yes +USE_XORG= x11 xcb + +CMAKE_TESTING_ON= BUILD_TESTS +DATADIR= ${PREFIX}/share/vpl + +.include diff --git a/multimedia/libvpl-tools/distinfo b/multimedia/libvpl-tools/distinfo new file mode 100644 index 000000000000..97925be6ebce --- /dev/null +++ b/multimedia/libvpl-tools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1784771234 +SHA256 (intel-libvpl-tools-v1.6.0_GH0.tar.gz) = 3f8e86ff6f7264a4f5bfa396ba3e4700a6cbd1e69840e33ee0838872dcf9e1e6 +SIZE (intel-libvpl-tools-v1.6.0_GH0.tar.gz) = 1307938 diff --git a/multimedia/libvpl-tools/files/patch-CMakeLists.txt b/multimedia/libvpl-tools/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..cc0de9643c57 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2026-06-25 23:06:43 UTC ++++ CMakeLists.txt +@@ -206,7 +206,7 @@ endif() + message( + STATUS " USE_MSVC_STATIC_RUNTIME : ${USE_MSVC_STATIC_RUNTIME}") + endif() +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + message(STATUS " ENABLE_VA : ${ENABLE_VA}") + message(STATUS " ENABLE_DRM : ${ENABLE_DRM}") + message(STATUS " ENABLE_WAYLAND : ${ENABLE_WAYLAND}") diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_system__analyzer_system__analyzer.cpp b/multimedia/libvpl-tools/files/patch-tools_cli_system__analyzer_system__analyzer.cpp new file mode 100644 index 000000000000..9777728d8628 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_system__analyzer_system__analyzer.cpp @@ -0,0 +1,11 @@ +--- tools/cli/system_analyzer/system_analyzer.cpp.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/system_analyzer/system_analyzer.cpp +@@ -14,7 +14,7 @@ + #include + #include "vpl/mfx.h" + +-#ifdef __linux__ ++#ifdef __unix__ + #include + #include + #include diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.cpp b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.cpp new file mode 100644 index 000000000000..52e2a419e512 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.cpp @@ -0,0 +1,38 @@ +--- tools/cli/val-surface-sharing/src/encode.cpp.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/val-surface-sharing/src/encode.cpp +@@ -238,7 +238,7 @@ mfxStatus CEncodeTest::ProcessStreamEncode() { + + std::vector bsInput(surfaceSize, 0); + +-#ifdef __linux__ ++#ifdef __unix__ + VASurfaceID vaSurfaceID; + #endif + +@@ -368,7 +368,7 @@ mfxStatus CEncodeTest::ProcessStreamEncode() { + &m_fileInfo.bitstream, + &syncp); + +-#ifdef __linux__ ++#ifdef __unix__ + if (m_pOpts->surfaceMode != SURFACE_MODE_SHARED) + #endif + { +@@ -388,7 +388,7 @@ mfxStatus CEncodeTest::ProcessStreamEncode() { + WriteEncodedStream(m_fileInfo.bitstream, m_fileInfo.outfile); + frameNum++; + } +-#ifdef __linux__ ++#ifdef __unix__ + if (sts != MFX_WRN_IN_EXECUTION) { + if (m_pOpts->surfaceMode == SURFACE_MODE_SHARED) + ReleaseFreeSurfaces(); +@@ -447,7 +447,7 @@ mfxStatus CEncodeTest::Run() { + return MFX_ERR_NONE; + } + +-#ifdef __linux__ ++#ifdef __unix__ + void CEncodeTest::ReleaseFreeSurfaces() { + std::list surfaces_to_delete; + diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.h b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.h new file mode 100644 index 000000000000..f21d7d9c261b --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_encode.h @@ -0,0 +1,11 @@ +--- tools/cli/val-surface-sharing/src/encode.h.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/val-surface-sharing/src/encode.h +@@ -47,7 +47,7 @@ class CEncodeTest : public CTest { (private) + mfxStatus CreateVPLSession(); + mfxStatus ProcessStreamEncode(); + +-#ifdef __linux__ ++#ifdef __unix__ + + struct ImportedVASurfaceWrapper { + mfxFrameSurface1 *m_imported_mfx_surface; diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.cpp b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.cpp new file mode 100644 index 000000000000..c1e80242ff24 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.cpp @@ -0,0 +1,11 @@ +--- tools/cli/val-surface-sharing/src/util.cpp.orig 2026-07-23 01:58:41 UTC ++++ tools/cli/val-surface-sharing/src/util.cpp +@@ -445,7 +445,7 @@ mfxStatus GetAdaptersInfo(Options *opts, bool bPrint) + if (dev->Version.Version >= MFX_STRUCT_VERSION(1, 1)) { + mfxMediaAdapterType eMA = (mfxMediaAdapterType)dev->MediaAdapterType; + if (eMA != MFX_MEDIA_UNKNOWN) { +-#ifdef __linux__ ++#ifdef __unix__ + mfxExtendedDeviceId *idescDevice = nullptr; + sts = MFXEnumImplementations(loader, + i, diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.h b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.h new file mode 100644 index 000000000000..1281be360eee --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_util.h @@ -0,0 +1,11 @@ +--- tools/cli/val-surface-sharing/src/util.h.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/val-surface-sharing/src/util.h +@@ -23,7 +23,7 @@ + #include + #include + +-#elif defined __linux__ ++#elif defined __unix__ + + #include + #include diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_vpp.cpp b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_vpp.cpp new file mode 100644 index 000000000000..1249e49c43b5 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_val-surface-sharing_src_vpp.cpp @@ -0,0 +1,20 @@ +--- tools/cli/val-surface-sharing/src/vpp.cpp.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/val-surface-sharing/src/vpp.cpp +@@ -251,7 +251,7 @@ mfxStatus CVPPTest::ProcessStreamVPP() { + + std::vector bsInput(surfaceSize, 0); + +-#ifdef __linux__ ++#ifdef __unix__ + VASurfaceID vaSurfaceID; + #endif + +@@ -479,7 +479,7 @@ mfxStatus CVPPTest::ProcessStreamVPP() { + "Could not release vpp output surface", + sts); + +-#ifdef __linux__ ++#ifdef __unix__ + if (!m_pOpts->bNoSSA && !isDraining && + m_pOpts->surfaceComponent != MFX_SURFACE_COMPONENT_VPP_OUTPUT) { + VAStatus vaSts = diff --git a/multimedia/libvpl-tools/files/patch-tools_cli_vpl-import-export_src_util.h b/multimedia/libvpl-tools/files/patch-tools_cli_vpl-import-export_src_util.h new file mode 100644 index 000000000000..6d43f8e211bb --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_cli_vpl-import-export_src_util.h @@ -0,0 +1,11 @@ +--- tools/cli/vpl-import-export/src/util.h.orig 2026-06-25 23:06:43 UTC ++++ tools/cli/vpl-import-export/src/util.h +@@ -24,7 +24,7 @@ + #include + #include + +-#elif defined __linux__ ++#elif defined __unix__ + + #include + #include diff --git a/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_CMakeLists.txt b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_CMakeLists.txt new file mode 100644 index 000000000000..12e4c15f2d29 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_CMakeLists.txt @@ -0,0 +1,20 @@ +--- tools/legacy/sample_common/CMakeLists.txt.orig 2026-06-25 23:06:43 UTC ++++ tools/legacy/sample_common/CMakeLists.txt +@@ -4,7 +4,7 @@ set(TOOLS_DEFAULT ON) + # SPDX-License-Identifier: MIT + # ############################################################################## + set(TOOLS_DEFAULT ON) +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + # Check dependencies up-front so we can set option defaults + find_package(PkgConfig REQUIRED) + # note: pkg-config version for libva is *API* version +@@ -189,7 +189,7 @@ endif() + target_compile_definitions(${TARGET} PUBLIC -DONEVPL_EXPERIMENTAL) + endif() + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + target_compile_definitions(${TARGET} PUBLIC LINUX64) + + if(NOT ENABLE_VA) diff --git a/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_gtkutils.cpp b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_gtkutils.cpp new file mode 100644 index 000000000000..c0eb8ffaa22d --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_gtkutils.cpp @@ -0,0 +1,11 @@ +--- tools/legacy/sample_common/src/gtkutils.cpp.orig 2026-06-25 23:06:43 UTC ++++ tools/legacy/sample_common/src/gtkutils.cpp +@@ -5,7 +5,7 @@ + ############################################################################*/ + #if defined(LIBVA_GTK4_SUPPORT) + #include "gtkutils.h" +- #include ++ #include + #include + #include + #include diff --git a/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_vm_thread__linux.cpp b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_vm_thread__linux.cpp new file mode 100644 index 000000000000..58556ed06a23 --- /dev/null +++ b/multimedia/libvpl-tools/files/patch-tools_legacy_sample__common_src_vm_thread__linux.cpp @@ -0,0 +1,19 @@ +--- tools/legacy/sample_common/src/vm/thread_linux.cpp.orig 2026-06-25 23:06:43 UTC ++++ tools/legacy/sample_common/src/vm/thread_linux.cpp +@@ -283,12 +283,16 @@ mfxStatus msdk_thread_get_schedtype(const char* str, m + else if (msdk_match(str, "other")) { + type = SCHED_OTHER; + } ++#ifdef SCHED_BATCH + else if (msdk_match(str, "batch")) { + type = SCHED_BATCH; + } ++#endif ++#ifdef SCHED_IDLE + else if (msdk_match(str, "idle")) { + type = SCHED_IDLE; + } ++#endif + else { + return MFX_ERR_UNSUPPORTED; + } diff --git a/multimedia/libvpl-tools/pkg-descr b/multimedia/libvpl-tools/pkg-descr new file mode 100644 index 000000000000..83548cc86c19 --- /dev/null +++ b/multimedia/libvpl-tools/pkg-descr @@ -0,0 +1,9 @@ +Intel Video Processing Library (Intel VPL) tools provide access to hardwa +re accelerated video decode, encode, and processing capabilities on Intel GPU +from the command line. + +The tools require the Intel VPL base library and a runtime library installe. +Current runtime implementations: + +- Intel VPL GPU Runtime for use on Intel Iris Xe graphics and newner +- Intel Media SDK for use on legacy Intel graphic diff --git a/multimedia/libvpl-tools/pkg-plist b/multimedia/libvpl-tools/pkg-plist new file mode 100644 index 000000000000..6f435c85a218 --- /dev/null +++ b/multimedia/libvpl-tools/pkg-plist @@ -0,0 +1,12 @@ +bin/sample_decode +bin/sample_encode +bin/sample_multi_transcode +bin/sample_vpp +bin/system_analyzer +bin/val-surface-sharing +bin/vpl-import-export +bin/vpl-inspect +lib/vpl-tools/libvpl_wayland.so +lib/vpl-tools/libvpl_wayland.so.1.0.0 +%%DATADIR%%-tools/licensing/license.txt +%%DATADIR%%-tools/licensing/third-party-programs.txt