media-libs/intel-mediasdk: New package
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 22 Oct 2018 22:44:43 +0000 (22:44 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 22 Oct 2018 22:55:00 +0000 (22:55 +0000)
A portable (windows/linux) mean to access the intel hardware
for encoding and decoding.

Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
media-libs/intel-mediasdk/Manifest [new file with mode: 0644]
media-libs/intel-mediasdk/intel-mediasdk-18.3.0.ebuild [new file with mode: 0644]
media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild [new file with mode: 0644]
media-libs/intel-mediasdk/metadata.xml [new file with mode: 0644]

diff --git a/media-libs/intel-mediasdk/Manifest b/media-libs/intel-mediasdk/Manifest
new file mode 100644 (file)
index 0000000..1438eca
--- /dev/null
@@ -0,0 +1 @@
+DIST intel-mediasdk-18.3.0.tar.gz 6313246 BLAKE2B cd8658252594aa8cec08839783c41e2f6e0a9c56366a35d7f900a7a625df77bdef8dd9d69feea1a1ed93c60699fdae5d90ea131ace39641cbb396c9ea9ea07f6 SHA512 7a5f91b2ecdca375dd5dd4c1678d61b34d96b0f4dfa1b64efe61962f66eab9bfdfac6cecb9610180c8cdcb624c467716fe5f34027950bfaed1dabd6add7585ee
diff --git a/media-libs/intel-mediasdk/intel-mediasdk-18.3.0.ebuild b/media-libs/intel-mediasdk/intel-mediasdk-18.3.0.ebuild
new file mode 100644 (file)
index 0000000..a900ffb
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+if [[ ${PV} == *9999 ]] ; then
+       : ${EGIT_REPO_URI:="https://github.com/Intel-Media-SDK/MediaSDK"}
+       if [[ ${PV%9999} != "" ]] ; then
+               : ${EGIT_BRANCH:="release/${PV%.9999}"}
+       fi
+       inherit git-r3
+fi
+
+DESCRIPTION="Intel Media SDK"
+HOMEPAGE="http://mediasdk.intel.com"
+if [[ ${PV} == *9999 ]] ; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${PV}.tar.gz"
+       S="${WORKDIR}/media-driver-intel-media-${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+       >=x11-libs/libva-intel-media-driver-${PV}
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_OPENCL=OFF
+       )
+
+       cmake-utils_src_configure
+}
diff --git a/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild b/media-libs/intel-mediasdk/intel-mediasdk-9999.ebuild
new file mode 100644 (file)
index 0000000..a900ffb
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+if [[ ${PV} == *9999 ]] ; then
+       : ${EGIT_REPO_URI:="https://github.com/Intel-Media-SDK/MediaSDK"}
+       if [[ ${PV%9999} != "" ]] ; then
+               : ${EGIT_BRANCH:="release/${PV%.9999}"}
+       fi
+       inherit git-r3
+fi
+
+DESCRIPTION="Intel Media SDK"
+HOMEPAGE="http://mediasdk.intel.com"
+if [[ ${PV} == *9999 ]] ; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${PV}.tar.gz"
+       S="${WORKDIR}/media-driver-intel-media-${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+       >=x11-libs/libva-intel-media-driver-${PV}
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_OPENCL=OFF
+       )
+
+       cmake-utils_src_configure
+}
diff --git a/media-libs/intel-mediasdk/metadata.xml b/media-libs/intel-mediasdk/metadata.xml
new file mode 100644 (file)
index 0000000..80088c2
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+       <email>media-video@gentoo.org</email>
+</maintainer>
+</pkgmetadata>