[arch-commits] Commit in intel-media-sdk/repos (5 files)
Daniel Bermond
dbermond at archlinux.org
Tue Oct 1 19:47:54 UTC 2019
Date: Tuesday, October 1, 2019 @ 19:47:54
Author: dbermond
Revision: 512394
archrelease: copy trunk to community-x86_64
Added:
intel-media-sdk/repos/community-x86_64/
intel-media-sdk/repos/community-x86_64/PKGBUILD
(from rev 512393, intel-media-sdk/trunk/PKGBUILD)
intel-media-sdk/repos/community-x86_64/intel-media-sdk.conf
(from rev 512393, intel-media-sdk/trunk/intel-media-sdk.conf)
intel-media-sdk/repos/community-x86_64/intel-media-sdk.install
(from rev 512393, intel-media-sdk/trunk/intel-media-sdk.install)
intel-media-sdk/repos/community-x86_64/intel-media-sdk.sh
(from rev 512393, intel-media-sdk/trunk/intel-media-sdk.sh)
-------------------------+
PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++++++++++
intel-media-sdk.conf | 2 +
intel-media-sdk.install | 4 ++
intel-media-sdk.sh | 2 +
4 files changed, 73 insertions(+)
Copied: intel-media-sdk/repos/community-x86_64/PKGBUILD (from rev 512393, intel-media-sdk/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-10-01 19:47:54 UTC (rev 512394)
@@ -0,0 +1,65 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=intel-media-sdk
+pkgver=19.2.1
+pkgrel=1
+pkgdesc='API to access hardware-accelerated video decode, encode and filtering on Intel platforms with integrated graphics'
+arch=('x86_64')
+url='https://github.com/Intel-Media-SDK/MediaSDK/'
+license=('MIT')
+depends=('gcc-libs' 'libdrm' 'libva' 'wayland' 'intel-media-driver')
+optdepends=('ocl-icd: for rotate_opencl plugin'
+ 'intel-compute-runtime: for rotate_opencl plugin')
+makedepends=('cmake' 'libpciaccess' 'libx11' 'libxcb' 'python'
+ 'opencl-headers' 'ocl-icd' 'intel-compute-runtime')
+provides=('libmfx')
+install="${pkgname}.install"
+source=("https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${pkgver}.tar.gz"
+ 'intel-media-sdk.conf'
+ 'intel-media-sdk.sh')
+sha256sums=('03c11a0379b61e292e789fa3dc9308ce45f36d68b4ebf437806c0e2c32357970'
+ '12a37e6e12d93fac5829082773b9f010a3c6c763ddeee177618b8e1a0547fbbc'
+ '315ea6f304cf2b7b6a8aaabb0b8f71fcd480677c7fb9c8cbfa51c7830bb159bc')
+
+prepare() {
+ mkdir -p "MediaSDK-intel-mediasdk-${pkgver}/build"
+}
+
+build() {
+ cd "MediaSDK-intel-mediasdk-${pkgver}/build"
+
+ cmake \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DBUILD_ALL:BOOL='ON' \
+ -DBUILD_TOOLS:BOOL='ON' \
+ -DENABLE_ITT:BOOL='OFF' \
+ -DENABLE_OPENCL:BOOL='ON' \
+ -DENABLE_WAYLAND:BOOL='ON' \
+ -DENABLE_X11_DRI3:BOOL='ON' \
+ -Wno-dev \
+ ..
+
+ make
+}
+
+check() {
+ make -C "MediaSDK-intel-mediasdk-${pkgver}/build" test
+}
+
+package() {
+ cd "MediaSDK-intel-mediasdk-${pkgver}/build"
+
+ make DESTDIR="$pkgdir" install
+
+ # metrics_monitor
+ install -D -m755 __bin/None/libcttmetrics.so -t "${pkgdir}/opt/intel/mediasdk/share/mfx/samples"
+ install -D -m755 __bin/None/metrics_monitor -t "${pkgdir}/opt/intel/mediasdk/share/mfx/samples"
+ ln -s ../share/mfx/samples/libcttmetrics.so "${pkgdir}/opt/intel/mediasdk/lib/libcttmetrics.so"
+
+ # ld.so and profile configuration files
+ install -D -m644 "${srcdir}/intel-media-sdk.conf" -t "${pkgdir}/etc/ld.so.conf.d"
+ install -D -m755 "${srcdir}/intel-media-sdk.sh" -t "${pkgdir}/etc/profile.d"
+
+ # license
+ install -D -m644 "${srcdir}/MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
Copied: intel-media-sdk/repos/community-x86_64/intel-media-sdk.conf (from rev 512393, intel-media-sdk/trunk/intel-media-sdk.conf)
===================================================================
--- community-x86_64/intel-media-sdk.conf (rev 0)
+++ community-x86_64/intel-media-sdk.conf 2019-10-01 19:47:54 UTC (rev 512394)
@@ -0,0 +1,2 @@
+/opt/intel/mediasdk/lib
+/opt/intel/mediasdk/lib/mfx
Copied: intel-media-sdk/repos/community-x86_64/intel-media-sdk.install (from rev 512393, intel-media-sdk/trunk/intel-media-sdk.install)
===================================================================
--- community-x86_64/intel-media-sdk.install (rev 0)
+++ community-x86_64/intel-media-sdk.install 2019-10-01 19:47:54 UTC (rev 512394)
@@ -0,0 +1,4 @@
+post_install() {
+ printf '%s\n' 'The Intel Media SDK executable tools are in /opt/intel/mediasdk/bin'
+ printf '%s\n' 'You need to relogin in order for these files to appear in your PATH'
+}
Copied: intel-media-sdk/repos/community-x86_64/intel-media-sdk.sh (from rev 512393, intel-media-sdk/trunk/intel-media-sdk.sh)
===================================================================
--- community-x86_64/intel-media-sdk.sh (rev 0)
+++ community-x86_64/intel-media-sdk.sh 2019-10-01 19:47:54 UTC (rev 512394)
@@ -0,0 +1,2 @@
+export MFX_HOME='/opt/intel/mediasdk'
+export PATH="${PATH:+${PATH}:}/opt/intel/mediasdk/bin"
More information about the arch-commits
mailing list