summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorleot <leot>2017-03-12 09:27:07 +0000
committerleot <leot>2017-03-12 09:27:07 +0000
commit7c30f1332e5ddaeef365dcdd2d9da385306de879 (patch)
tree2217ad3762b5c3ebbe9522cefad475d96030c45c /multimedia
parenta07c625eeff4b00234a071b83a5241ee28bb67c5 (diff)
downloadpkgsrc-7c30f1332e5ddaeef365dcdd2d9da385306de879.tar.gz
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 (limited to 'multimedia')
-rw-r--r--multimedia/libva/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/multimedia/libva/Makefile b/multimedia/libva/Makefile
index 9572b56bbf7..638816c4ec5 100644
--- a/multimedia/libva/Makefile
+++ b/multimedia/libva/Makefile
@@ -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 @@ USE_TOOLS+= autoreconf autoconf automake gmake pkg-config
.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}