diff options
author | leot <leot@pkgsrc.org> | 2017-03-12 09:27:07 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2017-03-12 09:27:07 +0000 |
commit | a70a556e89234025ff4c391adf3f395b4fd6d623 (patch) | |
tree | 49444b63352a2c37a50370b8c5443e0b6e040f72 /multimedia | |
parent | 5b749940a18bd3735d6aac09cb33c0078b7225bb (diff) | |
download | pkgsrc-a70a556e89234025ff4c391adf3f395b4fd6d623.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/Makefile | 13 |
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} |