----------------------------------------- libvdpau-1.1.1.ebuild ----------------------------------------- # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 VIRTUALX_REQUIRED="test" inherit autotools-multilib flag-o-matic virtualx DESCRIPTION="VDPAU wrapper and trace libraries" HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU" SRC_URI="https://people.freedesktop.org/~aplattner/vdpau/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 ~arm64 x86 ~amd64-fbsd ~x86-fbsd" IUSE="doc dri +nouveau" RDEPEND=">=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] dri? ( >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] ) !=x11-drivers/nvidia-drivers-180* !=x11-drivers/nvidia-drivers-185* !=x11-drivers/nvidia-drivers-190*" DEPEND="${RDEPEND} virtual/pkgconfig doc? ( app-doc/doxygen media-gfx/graphviz virtual/latex-base ) dri? ( x11-base/xorg-proto )" src_configure() { append-cppflags -D_GNU_SOURCE local myeconfargs=( --docdir="${EPREFIX}"/usr/share/doc/${PF} $(use_enable doc documentation) $(use dri || echo --disable-dri2) ) if use nouveau; then epatch "${FILESDIR}/nouveau.patch" fi autotools-multilib_src_configure } multilib_src_test() { Xemake check } src_install() { autotools-multilib_src_install prune_libtool_files --modules } ----------------------------------------- nouveau.patch ----------------------------------------- --- a/src/vdpau_wrapper.c +++ b/src/vdpau_wrapper.c @@ -129,7 +129,7 @@ _vdp_get_driver_name_from_dri2(display, screen); } if (!vdpau_driver) { - vdpau_driver = "nvidia"; + vdpau_driver = "nouveau"; } /* Don't allow setuid apps to use VDPAU_DRIVER_PATH */