[arch-commits] Commit in intel-media-sdk/repos (6 files)
Daniel Bermond
dbermond at archlinux.org
Wed Jan 22 18:55:26 UTC 2020
Date: Wednesday, January 22, 2020 @ 18:55:26
Author: dbermond
Revision: 554415
archrelease: copy trunk to community-testing-x86_64
Added:
intel-media-sdk/repos/community-testing-x86_64/
intel-media-sdk/repos/community-testing-x86_64/PKGBUILD
(from rev 554414, intel-media-sdk/trunk/PKGBUILD)
intel-media-sdk/repos/community-testing-x86_64/intel-media-sdk.conf
(from rev 554414, intel-media-sdk/trunk/intel-media-sdk.conf)
intel-media-sdk/repos/community-testing-x86_64/intel-media-sdk.install
(from rev 554414, intel-media-sdk/trunk/intel-media-sdk.install)
intel-media-sdk/repos/community-testing-x86_64/intel-media-sdk.sh
(from rev 554414, intel-media-sdk/trunk/intel-media-sdk.sh)
intel-media-sdk/repos/community-testing-x86_64/libmfx.conf
(from rev 554414, intel-media-sdk/trunk/libmfx.conf)
-------------------------+
PKGBUILD | 81 ++++++++++++++++++++++++++++++++++++++++++++++
intel-media-sdk.conf | 2 +
intel-media-sdk.install | 4 ++
intel-media-sdk.sh | 2 +
libmfx.conf | 1
5 files changed, 90 insertions(+)
Copied: intel-media-sdk/repos/community-testing-x86_64/PKGBUILD (from rev 554414, intel-media-sdk/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-01-22 18:55:26 UTC (rev 554415)
@@ -0,0 +1,81 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgbase=intel-media-sdk
+pkgname=('intel-media-sdk' 'libmfx')
+pkgver=19.4.0
+pkgrel=2
+pkgdesc='API to access hardware-accelerated video on Intel Gen graphics hardware platforms'
+arch=('x86_64')
+url='https://software.intel.com/en-us/media-sdk/'
+license=('MIT')
+makedepends=('libdrm' 'libva' 'wayland'
+ 'cmake' 'libpciaccess' 'libx11' 'libxcb' 'python'
+ 'opencl-headers' 'ocl-icd' 'intel-compute-runtime')
+source=("https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${pkgver}.tar.gz"
+ 'libmfx.conf'
+ 'intel-media-sdk.conf'
+ 'intel-media-sdk.sh')
+sha256sums=('289a40ffe73dc291461d97edf452bdc622f76e52666483fd1eb4f131d2921cd1'
+ '82b64d0c5adde9ab73b8d2ac6cfb80e5ceacefef9ef6215fa550f4cd957f9fec'
+ '12a37e6e12d93fac5829082773b9f010a3c6c763ddeee177618b8e1a0547fbbc'
+ '315ea6f304cf2b7b6a8aaabb0b8f71fcd480677c7fb9c8cbfa51c7830bb159bc')
+
+build() {
+ cmake -B build -S "MediaSDK-intel-mediasdk-${pkgver}" \
+ -DCMAKE_BUILD_TYPE:STRING='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 -C build
+}
+
+check() {
+ make -C build test
+}
+
+package_intel-media-sdk() {
+ depends=('gcc-libs' 'libdrm' 'libva' 'wayland' "libmfx=${pkgver}" 'intel-media-driver')
+ optdepends=('ocl-icd: for rotate_opencl plugin'
+ 'intel-compute-runtime: for rotate_opencl plugin')
+ install="${pkgname}.install"
+
+ make -C build DESTDIR="$pkgdir" install
+
+ # metrics_monitor
+ install -D -m755 build/__bin/None/libcttmetrics.so -t "${pkgdir}/opt/intel/mediasdk/share/mfx/samples"
+ install -D -m755 build/__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 intel-media-sdk.conf -t "${pkgdir}/etc/ld.so.conf.d"
+ install -D -m755 intel-media-sdk.sh -t "${pkgdir}/etc/profile.d"
+
+ # remove core component libmfx :/
+ [ -d 'libmfx' ] && rm -rf libmfx
+ mkdir -p libmfx/lib/pkgconfig
+ mv "${pkgdir}/opt/intel/mediasdk/include" libmfx
+ mv "${pkgdir}/opt/intel/mediasdk/lib/libmfx.so"* libmfx/lib
+ mv "${pkgdir}/opt/intel/mediasdk/lib/pkgconfig/"{,lib}mfx.pc libmfx/lib/pkgconfig
+
+ # license
+ install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_libmfx() {
+ pkgdesc='Intel Media SDK dispatcher library'
+ depends=('gcc-libs')
+
+ # install core component libmfx into a separated package
+ mkdir -p "${pkgdir}/opt/intel/mediasdk"
+ mv libmfx/{include,lib} "${pkgdir}/opt/intel/mediasdk"
+
+ # ld.so configuration file
+ install -D -m644 libmfx.conf -t "${pkgdir}/etc/ld.so.conf.d"
+
+ # license
+ install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
Copied: intel-media-sdk/repos/community-testing-x86_64/intel-media-sdk.conf (from rev 554414, intel-media-sdk/trunk/intel-media-sdk.conf)
===================================================================
--- community-testing-x86_64/intel-media-sdk.conf (rev 0)
+++ community-testing-x86_64/intel-media-sdk.conf 2020-01-22 18:55:26 UTC (rev 554415)
@@ -0,0 +1,2 @@
+/opt/intel/mediasdk/lib
+/opt/intel/mediasdk/lib/mfx
Copied: intel-media-sdk/repos/community-testing-x86_64/intel-media-sdk.install (from rev 554414, intel-media-sdk/trunk/intel-media-sdk.install)
===================================================================
--- community-testing-x86_64/intel-media-sdk.install (rev 0)
+++ community-testing-x86_64/intel-media-sdk.install 2020-01-22 18:55:26 UTC (rev 554415)
@@ -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-testing-x86_64/intel-media-sdk.sh (from rev 554414, intel-media-sdk/trunk/intel-media-sdk.sh)
===================================================================
--- community-testing-x86_64/intel-media-sdk.sh (rev 0)
+++ community-testing-x86_64/intel-media-sdk.sh 2020-01-22 18:55:26 UTC (rev 554415)
@@ -0,0 +1,2 @@
+export MFX_HOME='/opt/intel/mediasdk'
+export PATH="${PATH:+${PATH}:}/opt/intel/mediasdk/bin"
Copied: intel-media-sdk/repos/community-testing-x86_64/libmfx.conf (from rev 554414, intel-media-sdk/trunk/libmfx.conf)
===================================================================
--- community-testing-x86_64/libmfx.conf (rev 0)
+++ community-testing-x86_64/libmfx.conf 2020-01-22 18:55:26 UTC (rev 554415)
@@ -0,0 +1 @@
+/opt/intel/mediasdk/lib
More information about the arch-commits
mailing list