From 35fdfe82afecbc4e9bcd3ec6cdc2e872672d625c Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Sun, 14 Apr 2019 08:18:20 -0700 Subject: [PATCH 1/2] gmmlib: add package --- packages/multimedia/gmmlib/package.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/multimedia/gmmlib/package.mk diff --git a/packages/multimedia/gmmlib/package.mk b/packages/multimedia/gmmlib/package.mk new file mode 100644 index 00000000000..8fbce4bd2f1 --- /dev/null +++ b/packages/multimedia/gmmlib/package.mk @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="gmmlib" +PKG_VERSION="50707fb182bc8fc8f9711d2c0da96f6ded1b8ef4" +PKG_SHA256="73c8895e3d5c54c8a44682c69db5c1a40da5500dacc07c89cb520d2b21626b05" +PKG_ARCH="x86_64" +PKG_LICENSE="MIT" +PKG_SITE="https://01.org/linuxmedia" +PKG_URL="https://github.com/intel/gmmlib/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_LONGDESC="gmmlib: The Intel(R) Graphics Memory Management Library provides device specific and buffer management for the Intel(R) Graphics Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI." + +PKG_CMAKE_OPTS_TARGET="-DRUN_TEST_SUITE=OFF" From 966647cb50edb755cf0ca8deef6cc106d5423449 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Sun, 14 Apr 2019 08:19:05 -0700 Subject: [PATCH 2/2] media-driver: add package --- packages/multimedia/media-driver/package.mk | 14 ++++++++++++++ .../media-driver-0001-remove-x11-dependency.patch | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 packages/multimedia/media-driver/package.mk create mode 100644 packages/multimedia/media-driver/patches/media-driver-0001-remove-x11-dependency.patch diff --git a/packages/multimedia/media-driver/package.mk b/packages/multimedia/media-driver/package.mk new file mode 100644 index 00000000000..29fc81a062a --- /dev/null +++ b/packages/multimedia/media-driver/package.mk @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="media-driver" +PKG_VERSION="82c0e6f7f6fd920218031a1d202b4ae06e3cf148" +PKG_SHA256="6f689d174a7a9597bc1d4b368530f822f29c2a26200c44bead6d885754b0e4b8" +PKG_ARCH="x86_64" +PKG_LICENSE="MIT" +PKG_SITE="https://01.org/linuxmedia" +PKG_URL="https://github.com/intel/media-driver/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain libva libdrm gmmlib" +PKG_LONGDESC="media-driver: The Intel(R) Media Driver for VAAPI is a new VA-API (Video Acceleration API) user mode driver supporting hardware accelerated decoding, encoding, and video post processing for GEN based graphics hardware." + +PKG_CMAKE_OPTS_TARGET="-DENABLE_NONFREE_KERNELS=OFF -DBUILD_KERNELS=OFF" diff --git a/packages/multimedia/media-driver/patches/media-driver-0001-remove-x11-dependency.patch b/packages/multimedia/media-driver/patches/media-driver-0001-remove-x11-dependency.patch new file mode 100644 index 00000000000..dc75d0bf5bc --- /dev/null +++ b/packages/multimedia/media-driver/patches/media-driver-0001-remove-x11-dependency.patch @@ -0,0 +1,14 @@ +diff -Naur a/media_driver/linux/common/codec/ddi/media_libva_decoder.cpp b/media_driver/linux/common/codec/ddi/media_libva_decoder.cpp +--- a/media_driver/linux/common/codec/ddi/media_libva_decoder.cpp 2019-04-12 00:30:46.000000000 -0700 ++++ b/media_driver/linux/common/codec/ddi/media_libva_decoder.cpp 2019-04-12 22:55:05.146368984 -0700 +@@ -41,10 +41,6 @@ + #include "media_interfaces.h" + #include "media_ddi_decode_const.h" + +-#ifndef ANDROID +-#include +-#endif +- + #include + + typedef MediaDdiFactory DdiDecodeFactory;