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 <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Thu Mar 2 16:55:29 2017 +0100
Changeset: 4b6c313f809e7ea984db5334e910515bda2ee668
Modified Files:
intel-vaapi-driver/Makefile
intel-vaapi-driver/PLIST
Log Message:
intel-vaapi-driver: make it less BROKEN and finally installable
- Gracefully handle non-supported VAAPI platform `multimedia/libva/available.mk'
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
X.org. Document that via a comment because unfortunately it is not completely
trivial.
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 X.org)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4b6c313f809e7ea984db5334e910515bda2ee668
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
intel-vaapi-driver/Makefile | 17 ++++++++++++-----
intel-vaapi-driver/PLIST | 1 +
2 files changed, 13 insertions(+), 5 deletions(-)
diffs:
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= https://github.com/01org/intel-vaapi-driver/
COMMENT= VA-API user mode driver for Intel GEN Graphics family
LICENSE= mit
-# TODO: Package seems to built fine but a way to properly install
-# TODO: it should be implemented and multimedia/libva/available.mk
-# 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/available.mk"
+
+.if ${VAAPI_AVAILABLE} == "no"
+NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM}
+.endif
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
@@ -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 X.org so handle installation similarly to graphics/MesaLib
+# XXX: in order to be native/pkgsrc X.org agnostic.
+CONFIGURE_ENV+= LIBVA_DRIVERS_PATH=${PREFIX}/lib/dri/
+
.include "../../mk/bsd.prefs.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$
+lib/dri/i965_drv_video.la
Home |
Main Index |
Thread Index |
Old Index