pkgsrc-WIP-changes archive

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

intel-vaapi-driver: make it less BROKEN and finally installable

Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <>
Pushed By:	leot
Date:		Thu Mar 2 16:55:29 2017 +0100
Changeset:	4b6c313f809e7ea984db5334e910515bda2ee668

Modified Files:

Log Message:
intel-vaapi-driver: make it less BROKEN and finally installable

- Gracefully handle non-supported VAAPI platform `multimedia/libva/'
  and defining NOT_FOR_PLATFORM accordingly.
- Force installation in ${PREFIX}/lib/dri consistently to graphics/MesaLib.
  This is done in order to (hopefully!) properly work both for native and pkgsrc Document that via a comment because unfortunately it is not completely

TODO: Look at multimedia/libva (probably!) in order to properly pickup the right
TODO: LIBVA_DRIVER_NAME and in the right path if we can safely assume that it
TODO: will be always present in ${PREFIX}/lib/dri (despite using native

To see a diff of this commit:;a=commitdiff;h=4b6c313f809e7ea984db5334e910515bda2ee668

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

 intel-vaapi-driver/Makefile | 17 ++++++++++++-----
 intel-vaapi-driver/PLIST    |  1 +
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/intel-vaapi-driver/Makefile b/intel-vaapi-driver/Makefile
index 5ddda3d95b..03f0517c95 100644
--- a/intel-vaapi-driver/Makefile
+++ b/intel-vaapi-driver/Makefile
@@ -9,11 +9,11 @@ HOMEPAGE=
 COMMENT=	VA-API user mode driver for Intel GEN Graphics family
-# TODO: Package seems to built fine but a way to properly install
-# TODO: it should be implemented and multimedia/libva/
-# TODO: should be checked to conditionally mark this package BROKEN
-# TODO: on such platforms.
-BROKEN=		Properly handle the installation and check for libva availability
+.include "../../multimedia/libva/"
+.if ${VAAPI_AVAILABLE} == "no"
@@ -21,6 +21,13 @@ USE_TOOLS+=	autoconf automake gmake pkg-config
 CONFIGURE_ARGS+=	--disable-wayland
+# XXX: Force installation in PREFIX.
+# XXX: LIBVA_DRIVERS_PATH - if undefined - is obtained via
+# XXX: `pkg-config libva --variable driverdir'. This is not desiderable
+# XXX: for native so handle installation similarly to graphics/MesaLib
+# XXX: in order to be native/pkgsrc agnostic.
 .include "../../mk/"
 .if ${OPSYS} != "Linux"
diff --git a/intel-vaapi-driver/PLIST b/intel-vaapi-driver/PLIST
index 48d96a5493..a1e56c77ef 100644
--- a/intel-vaapi-driver/PLIST
+++ b/intel-vaapi-driver/PLIST
@@ -1 +1,2 @@
 @comment $NetBSD$

Home | Main Index | Thread Index | Old Index