Regardless of this change. Why are you so sure that we ONLY support amd64? FreeBSD builds libva under: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le?
I think libva intel-support makes sense for i386. I think we have 3 cases here: 1.) libva support in general 2.) libva AMD/mesa drivers (maybe amd64 only) 3.) libva Intel support via ports (amd64 and maybe i386) Rafael On Mon Jul 15, 2024 at 09:49:40PM GMT, Klemens Nanni wrote: > Keeping it actively disabled on !amd64 should not be needed as feature > detection > should gracefully fail, but doing it explicitly conveys meaning, so... > > I manually sorted 'va va-x11 va-drm' into WANTLIB-main as > 'port-lib-depends-check' > wouldn't regenerate the block nicely. > > (I also noticed that 'execinfo' is in both main and -jack, so should move to > -common, > but that can be a separate thing.) > > Does this look right? > Not to be committed before VA-API in Xenocara landed and ports got hooked up, > but ready for tests (: > > Worked right away with intel-media-driver on my T14 Gen3 Intel: > > $ cvlc *mkv > [...] > libva info: VA-API version 1.22.0 > libva info: Trying to open /usr/X11R6/lib/modules/drivers//iHD_drv_video.so > libva info: Found init function __vaDriverInit_1_22 > libva info: va_openDriver() returns 0 > [00000a9a1825b760] avcodec decoder: Using Intel iHD driver for Intel(R) Gen > Graphics - 24.1.5 () for hardware decoding > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/x11/vlc/Makefile,v > diff -u -p -r1.271 Makefile > --- Makefile 15 Jul 2024 21:04:48 -0000 1.271 > +++ Makefile 15 Jul 2024 21:18:15 -0000 > @@ -8,7 +8,7 @@ PKGNAME-jack= vlc-jack-${V} > CATEGORIES= x11 > SITES= https://download.videolan.org/pub/videolan/vlc/${V}/ > EXTRACT_SUFX= .tar.xz > -REVISION-main= 0 > +REVISION-main= 1 > > USE_NOBTCFI= Yes > > @@ -65,11 +65,12 @@ WANTLIB-main += pcre2-16 pcre2-8 pixman- > WANTLIB-main += rsvg-2 sharpyuv smb2 sndio soxr speex speexdsp ssl > WANTLIB-main += swresample swscale tag tar tasn1 theoradec theoraenc > WANTLIB-main += tiff udfread unibreak unistring usbhid utf8_range > utf8_validity > -WANTLIB-main += vorbis vorbisenc vpx wayland-client wayland-cursor > -WANTLIB-main += wayland-egl webp x264 x265 xcb xcb-composite xcb-dri2 > -WANTLIB-main += xcb-dri3 xcb-glx xcb-keysyms xcb-present xcb-randr > +WANTLIB-main += vorbis vorbisenc va va-drm va-x11 vpx wayland-client > +WANTLIB-main += wayland-cursor wayland-egl webp x264 x265 xcb xcb-composite > +WANTLIB-main += xcb-dri2 xcb-dri3 xcb-glx xcb-keysyms xcb-present xcb-randr > WANTLIB-main += xcb-render xcb-shm xcb-sync xcb-xfixes xcb-xv xkbcommon > WANTLIB-main += xml2 xshmfence xvidcore z zstd > + > # v4l2 is dlopen'd > WANTLIB-main+= v4l2 > > @@ -175,7 +176,6 @@ CONFIGURE_ARGS+=--disable-a52 \ > --disable-kwallet \ > --disable-libmpeg2 \ > --disable-libplacebo \ > - --disable-libva \ > --disable-linsys \ > --disable-live555 \ > --disable-mad \ > @@ -241,6 +241,7 @@ CONFIGURE_ARGS+=--disable-jack > .if ${MACHINE_ARCH} == "amd64" > PKG_ARGS+=-Damd64=1 > .else > +CONFIGURE_ARGS+=--disable-libva > PKG_ARGS+=-Damd64=0 > .endif > > Index: pkg/PFRAG.amd64-main > =================================================================== > RCS file: /cvs/ports/x11/vlc/pkg/PFRAG.amd64-main,v > diff -u -p -r1.9 PFRAG.amd64-main > --- pkg/PFRAG.amd64-main 11 Mar 2022 20:17:31 -0000 1.9 > +++ pkg/PFRAG.amd64-main 15 Jul 2024 21:18:15 -0000 > @@ -1,6 +1,12 @@ > +@so lib/vlc/plugins/codec/libvaapi_drm_plugin.so > +@so lib/vlc/plugins/codec/libvaapi_plugin.so > +lib/vlc/plugins/vaapi/ > +@so lib/vlc/plugins/vaapi/libvaapi_filters_plugin.so > @so lib/vlc/plugins/video_chroma/libi420_rgb_mmx_plugin.so > @so lib/vlc/plugins/video_chroma/libi420_rgb_sse2_plugin.so > @so lib/vlc/plugins/video_chroma/libi420_yuy2_mmx_plugin.so > @so lib/vlc/plugins/video_chroma/libi420_yuy2_sse2_plugin.so > @so lib/vlc/plugins/video_chroma/libi422_yuy2_mmx_plugin.so > @so lib/vlc/plugins/video_chroma/libi422_yuy2_sse2_plugin.so > +@so lib/vlc/plugins/video_output/libglconv_vaapi_drm_plugin.so > +@so lib/vlc/plugins/video_output/libglconv_vaapi_x11_plugin.so >