pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
intel-vaapi-driver: Import intel-vaapi-driver-1.7.3 as wip/intel-vaapi-driver
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sat Feb 25 14:52:23 2017 +0100
Changeset: 757cdc05ef07738d89d34f795cfd03c4b2725b32
Modified Files:
Makefile
Added Files:
intel-vaapi-driver/DESCR
intel-vaapi-driver/Makefile
intel-vaapi-driver/PLIST
intel-vaapi-driver/distinfo
intel-vaapi-driver/patches/patch-configure.ac
intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
Log Message:
intel-vaapi-driver: Import intel-vaapi-driver-1.7.3 as wip/intel-vaapi-driver
VA-API (Video Acceleration API) user mode driver for Intel GEN
Graphics family.
VA-API is an open-source library and API specification, which
provides access to graphics hardware acceleration capabilities for
video processing. It consists of a main library and driver-specific
acceleration backends for each supported hardware vendor.
The current video driver backend provides a bridge to the GEN GPUs
through the packaging of buffers and commands to be sent to the
i915 driver for exercising both hardware and shader functionality
for video decode, encode, and processing.
XXX: Actually the package is marked as BROKEN because a proper way to install it
XXX: need to be implemented. The resulting i965_drv_video.so was manually tested
XXX: with mpv on NetBSD/amd64 7.99.53 and native X.org and seems working though.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=757cdc05ef07738d89d34f795cfd03c4b2725b32
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
intel-vaapi-driver/DESCR | 12 +++++++
intel-vaapi-driver/Makefile | 37 ++++++++++++++++++++++
intel-vaapi-driver/PLIST | 1 +
intel-vaapi-driver/distinfo | 8 +++++
intel-vaapi-driver/patches/patch-configure.ac | 15 +++++++++
.../patches/patch-src_i965__decoder__utils.c | 25 +++++++++++++++
7 files changed, 99 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 6ec2a854f5..7d496fd0b9 100644
--- a/Makefile
+++ b/Makefile
@@ -1358,6 +1358,7 @@ SUBDIR+= inetdxtra
SUBDIR+= info2man
SUBDIR+= infraarcana
SUBDIR+= intel-gpu-tools
+SUBDIR+= intel-vaapi-driver
SUBDIR+= interbase-docs
SUBDIR+= io-base
SUBDIR+= io-blowfish
diff --git a/intel-vaapi-driver/DESCR b/intel-vaapi-driver/DESCR
new file mode 100644
index 0000000000..e8069977c9
--- /dev/null
+++ b/intel-vaapi-driver/DESCR
@@ -0,0 +1,12 @@
+VA-API (Video Acceleration API) user mode driver for Intel GEN
+Graphics family.
+
+VA-API is an open-source library and API specification, which
+provides access to graphics hardware acceleration capabilities for
+video processing. It consists of a main library and driver-specific
+acceleration backends for each supported hardware vendor.
+
+The current video driver backend provides a bridge to the GEN GPUs
+through the packaging of buffers and commands to be sent to the
+i915 driver for exercising both hardware and shader functionality
+for video decode, encode, and processing.
diff --git a/intel-vaapi-driver/Makefile b/intel-vaapi-driver/Makefile
new file mode 100644
index 0000000000..5ddda3d95b
--- /dev/null
+++ b/intel-vaapi-driver/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME= intel-vaapi-driver-1.7.3
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_GITHUB:=01org/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+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
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= autoconf automake gmake pkg-config
+
+CONFIGURE_ARGS+= --disable-wayland
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+BUILDLINK_TRANSFORM+= rm:-ldl
+.endif
+
+pre-configure:
+ ${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../multimedia/libva/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/intel-vaapi-driver/PLIST b/intel-vaapi-driver/PLIST
new file mode 100644
index 0000000000..48d96a5493
--- /dev/null
+++ b/intel-vaapi-driver/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD$
diff --git a/intel-vaapi-driver/distinfo b/intel-vaapi-driver/distinfo
new file mode 100644
index 0000000000..c26cb5d58b
--- /dev/null
+++ b/intel-vaapi-driver/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (intel-vaapi-driver-1.7.3.tar.gz) = f2f412edc9d03567897b187d96343db68598fa37
+RMD160 (intel-vaapi-driver-1.7.3.tar.gz) = 2ba7c3d945733bf56f234fc5451422173a612f1d
+SHA512 (intel-vaapi-driver-1.7.3.tar.gz) = 57ae4fbf1bd5799e8a311fcd67eda1a8a6d5b5267df502b83f63f8bd0cdd510a4f78b4d09088833bfa2e98447d841c3d4e7229f4e75a9d9f4b8096fb14027878
+Size (intel-vaapi-driver-1.7.3.tar.gz) = 1648659 bytes
+SHA1 (patch-configure.ac) = d6bf94e7799e515cd6b848c50555b8d3098c36f5
+SHA1 (patch-src_i965__decoder__utils.c) = aca1b4c8bb46a52c4887a4b2d1f74ff4fd08cabe
diff --git a/intel-vaapi-driver/patches/patch-configure.ac b/intel-vaapi-driver/patches/patch-configure.ac
new file mode 100644
index 0000000000..819e80f4bd
--- /dev/null
+++ b/intel-vaapi-driver/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Check for alloca(3) in order to do the proper dance in source codes
+that uses it.
+
+--- configure.ac.orig 2016-11-10 05:04:36.000000000 +0000
++++ configure.ac
+@@ -74,6 +74,7 @@ AC_PROG_CXX
+ AC_C_BIGENDIAN
+ AC_HEADER_STDC
+ AC_SYS_LARGEFILE
++AC_FUNC_ALLOCA
+ AC_CHECK_LIB([m], [sin])
+ AC_CHECK_FUNCS([log2f])
+ AC_CHECK_PROGS([PYTHON2], [python2 python])
diff --git a/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c b/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
new file mode 100644
index 0000000000..2439201755
--- /dev/null
+++ b/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Honor AC_FUNC_ALLOCA and include the proper header files to use alloca(3).
+
+--- src/i965_decoder_utils.c.orig 2016-11-10 05:04:36.000000000 +0000
++++ src/i965_decoder_utils.c
+@@ -23,7 +23,17 @@
+
+ #include "sysdeps.h"
+ #include <limits.h>
+-#include <alloca.h>
++#ifdef STDC_HEADERS
++# include <stdlib.h>
++# include <stddef.h>
++#else
++# ifdef HAVE_STDLIB_H
++# include <stdlib.h>
++# endif
++#endif
++#ifdef HAVE_ALLOCA_H
++# include <alloca.h>
++#endif
+
+ #include "intel_batchbuffer.h"
+ #include "intel_media.h"
Home |
Main Index |
Thread Index |
Old Index