VA-API is an open-source library and API specification, which provides
access to graphics hardware acceleration capabilities for video
processing. It consists of a main library and driver-specific
acceleration backends for each supported hardware vendor.
===> The following configuration options are available for libva-2.24.1:
WAYLAND=on: Wayland (graphics) support
X11=on: X11 (graphics) support
===> Use 'make config' to modify these settings
multimedia/libva: fix default LIBVA_DRIVER_NAME with nvidia-drm.ko
In order to support both libva-vdpau-driver and libva-nvidia-driver
on NVIDIA GPUs let libva-drm get driver name from kernel DRM driver.
libva-nvidia-driver uses DRI2 instead of DRM, so not affected.
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Reported by: rhurlin
Regressed by: https://github.com/intel/libva/commit/5dae76daad3f
multimedia/libva: unbreak X11=off build after 07b46bb45fbe
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: include/va/va_trace.h
===> Error: Plist issues found.
*** Error code 1
PR: 277690
multimedia/libva-glx: merge back into X11 option after 5343f55d8757
libva-glx -> libGL -> libva dependency loop doesn't occur with
libGL from libglvnd instead of mesa-*.
This reverts commit 14a6544d4e37ffa04cbf5e6a398d8e057198d4cd.
multimedia/libva: unbreak build with LLD 17
Checking if "-Wl,--version-script" : links: NO
[...]
ld: error: va/libva.so.2.2000.0.p/va_compat.c.o: symbol
vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0
PR: 274088
Reported by: antoine (via bug 273753 exp-run)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Clean up support for FreeBSD 11.2.
While here, modernize some comments in Mk/bsd.*.mk.
Note that graphics/drm-fbsd11.2-kmod is not renamed yet, this was somewhat
under discussion.
Submitted by: rene
Reviewed by: antoine, jbeich, mat, zeising
Differential Revision: https://reviews.freebsd.org/D21974
Add USES=xorg USES=gl, ports categories l and m
Add USES=xorg and USES=gl to ports in categories starting with 'l' and 'm'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
multimedia/libva: reroll
--- libva-2.4.1.orig/meson.build 2019-04-07 17:44:47 UTC
+++ libva-2.4.1/meson.build 2019-04-17 10:07:39 UTC
@@ -20,7 +20,7 @@ project(
# - reset minor version to zero when major version is incremented
va_api_major_version = 1
va_api_minor_version = 4
-va_api_micro_version = 0
+va_api_micro_version = 1
va_api_version = '@0@.@1@.@2@'.format(va_api_major_version,
va_api_minor_version,
Reported by: Ravenports
multimedia/libva: update upstream patches (nop)
Prefer drmGetNodeTypeFromFd over drmGetDeviceNameFromFd2 but on
FreeBSD there's little difference as both compare strings.
multimedia/libva: unbreak DRM backend in some cases
$ vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
vaInitialize failed with error code 1 (operation failed),exit
$ ls -lL /dev/dri
total 0
crw-rw---- 1 root video 0x188 Mar 30 17:28 card0
crw-rw---- 1 root video 0x208 Mar 30 17:28 renderD128
$ echo $((0x208 & 0x80))
0
Reported by: gimjongseong (via private mail)
multimedia/libva: move GLX into slave
libva-glx isn't widely used and makes it hard to unify mesa-* ports
into one due to circular dependency.
See also: https://github.com/mpv-player/mpv/commit/a18dc01655b8
Obtained from: Greg V (based on)
multimedia/libva: drop DEBUG option
Neither NDEBUG nor _DEBUG are used by libva itself. NDEBUG guards
assert() but libva doesn't use those despite including <assert.h>.
multimedia/libva{,-intel-driver}: convert to USES=meson
Meson is faster than autoreconf + libtool and easier to maintain.
Force rebuild to catch regressions early.
multimedia/libva{,-intel-driver}: clean up
- Add BUILD_DEPENDS to intel driver for wl_drm_interface fix
- Rewrite gettid() to make it easier to maintain
- Update description from upstream
- Drop unused v4l_compat dependency
- Drop unused USES=alias as <alloca.h> is gone
- Drop libGL dependency as intel driver uses libEGL via dlopen on Wayland
- Drop --program-prefix after vainfo moved to libva-utils
- Drop fmake workaround as USES=gmake is used
- Drop -ldl workaround for FreeBSD < 11.2
- Drop RTLD_NODELETE workaround for FreeBSD < 8.0
- Drop GLX_GLXEXT_VERSION workaround for Mesa < 7.8.1
- Drop Created by as the port diverged a lot (even more with Meson)
- Hint intel driver isn't actively developed (but still maintained)
- Clarify libdrm dependency
- Unbreak Wayland support in libva-intel-driver with Mesa 18.3 [1]
- Allow disabling X11 support in libva [2]
- Update minimum version requirement in libva-intel-media-driver
BUILD_DEPENDS (required by submitter/maintainer) [1]
- While here, silence some portling warnings
- Pass maintainership to jbeich (submitter) [1]
PR: 234891 [1], 234925 [2]
Submitted by: jbeich
graphics/mesa-libs: enable WAYLAND by default here and in consumers
PR: 227509
Requested by: Johannes Lundberg, Greg V
Reviewed by: tobik (earlier version)
Approved by: madpilot, x11 (zeising), maintainer timeout (2 weeks)
Exp-run by: antoine
Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG. Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.
PR: 230909
Reviewed by: eadler
Approved by: portmgr (antoine)
Obtained
from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run: antoine
Differential Revision: https://reviews.freebsd.org/D16906
Switch to xorgproto instead of individual packages
Upstream used to distribute protocol headers as separate packages, but has
decided to merge those to a common package, named xorgproto. This update
tracks that change.
* Add a new port, x11/xorgproto, with are protocol headers for xorg.
* Hook the new protocol port to the build and to infrastructure in
bsd.xorg.mk.
* Update all ports with a dependency on any of the old *proto packages to
instead depend on xorgproto. Bump portrevision.
* Delete the old *proto packages, update MOVED.
PR: 230023
Submitted by: zeising
Approved by: portmgr (antoine)
exp-run by: antoine
Make libva and it's drivers install modules in the standard location
PREFIX/lib/dri.
This is the same location where other ports(mesa) install drivers,
so that everything works out of the box.
PR: 224424
Submitted by: Greg V <greg@unrelenting.technology>
- Fix build when compiling wayland support [1]
- Add an explicit WAYLAND option to allow users enabling or disabling
it, to avoid silent dependencies. Off by default
Reported by: "Alex V. Petrov" <alexvpetrov@gmail.com> [1]
Revision bump of all ports with USE_GL after consolidation of mesa-libs
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10845
Add a v4l_compat as RUN_DEPENDS too, as dri requires include files
from this port when including optional VAAPI support.
PR: 218642
Submitted by: Eric Camachat <eric@camachat.org>
Suggested by: jhale@
- Update multimedia/libva to 1.8.0
- Update multimedia/libva-intel-driver to 1.8.0
- Utility programs have been split out of libva distribution to
another repository, so create a new libva-utils port, copied
from libva, with these bits
- While here, update home pages in pkg-descr files
multimedia/libva: USES-= alias, augment patches
Threading is still broken on DragonFly when alias is used, so fix by
augmenting the same patches FreeBSD uses. These are no-op pre-processor
changes for FreeBSD.
Approved by: non-invasive DF support blanket
Add USES=alias to several ports
Alias is a new USES tool that allows DragonFly to masquerade as FreeBSD
by setting CFLAGS+= -D__FreeBSD__. For some ports, this fixes the build
without the need for additional patches.
Approved by: portmgr (bapt, blanket)