pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/libva For `native' X11_TYPE also look for p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f22019395911
branches:  trunk
changeset: 359494:f22019395911
user:      leot <leot%pkgsrc.org@localhost>
date:      Sun Mar 12 09:27:07 2017 +0000

description:
For `native' X11_TYPE also look for possible drivers installed in
${PREFIX}/lib/dri. This is needed by at least intel-vaapi-driver.

Bump PKGREVISION

Discussed and thanks to <maya>!

diffstat:

 multimedia/libva/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 671d7c9c742c -r f22019395911 multimedia/libva/Makefile
--- a/multimedia/libva/Makefile Sun Mar 12 07:42:52 2017 +0000
+++ b/multimedia/libva/Makefile Sun Mar 12 09:27:07 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2017/03/06 10:19:57 maya Exp $
+# $NetBSD: Makefile,v 1.15 2017/03/12 09:27:07 leot Exp $
 #
 
 DISTNAME=      libva-1.7.3
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    multimedia
 MASTER_SITES=  http://www.freedesktop.org/software/vaapi/releases/libva/
 EXTRACT_SUFX=  .tar.bz2
@@ -18,7 +18,16 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+#
+# vaapi drivers (e.g. intel-vaapi-driver) can be installed under
+# ${PREFIX}/lib/dri and linked against native X.org. Instruct libva's
+# DRIVER_SEARCH_PATH to look at them too for native X.org.
+#
+.if ${X11_TYPE} == "native"
+DRIVER_SEARCH_PATH=    ${X11BASE}/lib/dri:${PREFIX}/lib/dri
+.else
 DRIVER_SEARCH_PATH=    ${X11BASE}/lib/dri
+.endif
 
 CONFIGURE_ARGS+=       --enable-shared
 CONFIGURE_ARGS+=       --with-drivers-path=${DRIVER_SEARCH_PATH:Q}



Home | Main Index | Thread Index | Old Index