summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
-rw-r--r--intel-media-stack-bin.install2
3 files changed, 33 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fdea92adfda..1345d1aff58 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = intel-media-stack-bin
pkgdesc = Tools and libraries for developing media solutions on Intel products. Includes MediaSDK, Media Driver, libva and libva-utils.
- pkgver = 2018.Q2.2
- pkgrel = 3
+ pkgver = 2018.3.0
+ pkgrel = 1
url = https://github.com/Intel-Media-SDK/MediaSDK/
install = intel-media-stack-bin.install
arch = x86_64
@@ -9,12 +9,14 @@ pkgbase = intel-media-stack-bin
makedepends = lsb-release
depends = gcc-libs
depends = libpciaccess
+ depends = intel-gmmlib
depends = libdrm
+ depends = libgl
depends = libx11
depends = libxext
depends = libxfixes
depends = ocl-icd
- depends = perl
+ depends = wayland
provides = intel-media-sdk
provides = libmfx
provides = intel-media-driver
@@ -23,16 +25,16 @@ pkgbase = intel-media-stack-bin
conflicts = intel-media-sdk
conflicts = intel-media-sdk-git
conflicts = intel-media-server-studio
- noextract = intel-media-stack-bin-2018.Q2.2.tar.gz
+ noextract = intel-media-stack-bin-2018.3.0.tar.gz
options = !strip
- options = staticlibs
+ options = !emptydirs
backup = etc/profile.d/intel-mediasdk-devel.sh
backup = etc/profile.d/intel-mediasdk-devel.csh
backup = etc/profile.d/intel-mediasdk.sh
backup = etc/profile.d/intel-mediasdk.csh
- source = intel-media-stack-bin-2018.Q2.2.tar.gz::https://github.com/Intel-Media-SDK/MediaSDK/releases/download/MediaSDK-2018-Q2.2/MediaStack.tar.gz
- source = LICENSE::https://raw.githubusercontent.com/Intel-Media-SDK/MediaSDK/MediaSDK-2018-Q2.2/LICENSE
- sha256sums = 7bc9fe977882fd2285f9d3e12d53424a6513bf3b1dba146b05802bf9bb9afff9
+ source = intel-media-stack-bin-2018.3.0.tar.gz::https://github.com/Intel-Media-SDK/MediaSDK/releases/download/intel-mediasdk-18.3.0/MediaStack.tar.gz
+ source = LICENSE::https://raw.githubusercontent.com/Intel-Media-SDK/MediaSDK/intel-mediasdk-18.3.0/LICENSE
+ sha256sums = 7ceaf70c1a91c29fa9aaaae16a5eca154e9763152a2c84e73d529c17184e122a
sha256sums = dfd67773578903698f9ff4a61eb8f2d84810cbecd56f3f3cee8c649f813b6ea6
pkgname = intel-media-stack-bin
diff --git a/PKGBUILD b/PKGBUILD
index 864fe86f799..96b50a81c47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,15 @@
# Maintainer: Daniel Bermond < yahoo-com: danielbermond >
pkgname=intel-media-stack-bin
-pkgver=2018.Q2.2
-pkgrel=3
+pkgver=2018.3.0
+_srcver="$(printf '%s' "$pkgver" | sed -E 's/(^[0-9]{2})([0-9]{2})/\2/')"
+pkgrel=1
pkgdesc='Tools and libraries for developing media solutions on Intel products. Includes MediaSDK, Media Driver, libva and libva-utils.'
arch=('x86_64')
url='https://github.com/Intel-Media-SDK/MediaSDK/'
license=('MIT')
-depends=('gcc-libs' 'libpciaccess' 'libdrm' 'libx11' 'libxext' 'libxfixes' 'ocl-icd' 'perl')
+depends=('gcc-libs' 'libpciaccess' 'intel-gmmlib' 'libdrm' 'libgl' 'libx11'
+ 'libxext' 'libxfixes' 'ocl-icd' 'wayland')
makedepends=('lsb-release')
provides=('intel-media-sdk' 'libmfx' 'intel-media-driver' 'libva' 'libva-utils')
conflicts=('intel-media-sdk' 'intel-media-sdk-git' 'intel-media-server-studio')
@@ -15,12 +17,12 @@ backup=('etc/profile.d/intel-mediasdk-devel.sh'
'etc/profile.d/intel-mediasdk-devel.csh'
'etc/profile.d/intel-mediasdk.sh'
'etc/profile.d/intel-mediasdk.csh')
-options=('!strip' 'staticlibs')
+options=('!strip' '!emptydirs')
install="${pkgname}.install"
-source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Intel-Media-SDK/MediaSDK/releases/download/MediaSDK-${pkgver/.Q/-Q}/MediaStack.tar.gz"
- 'LICENSE'::"https://raw.githubusercontent.com/Intel-Media-SDK/MediaSDK/MediaSDK-${pkgver/.Q/-Q}/LICENSE")
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Intel-Media-SDK/MediaSDK/releases/download/intel-mediasdk-${_srcver}/MediaStack.tar.gz"
+ 'LICENSE'::"https://raw.githubusercontent.com/Intel-Media-SDK/MediaSDK/intel-mediasdk-${_srcver}/LICENSE")
noextract=("${pkgname}-${pkgver}.tar.gz")
-sha256sums=('7bc9fe977882fd2285f9d3e12d53424a6513bf3b1dba146b05802bf9bb9afff9'
+sha256sums=('7ceaf70c1a91c29fa9aaaae16a5eca154e9763152a2c84e73d529c17184e122a'
'dfd67773578903698f9ff4a61eb8f2d84810cbecd56f3f3cee8c649f813b6ea6')
prepare() {
@@ -73,17 +75,23 @@ package() {
printf '%s\n' "${_command} PATH=\${PATH:+\${PATH}:}/opt/intel/mediasdk/bin" >> "$_file"
done
+ # move tools to bin folder
+ mv "$pkgdir"/opt/intel/mediasdk/samples/_bin/x64/{asg-hevc,hevc_fei_extractor} "${pkgdir}/opt/intel/mediasdk/bin"
+
# add symlink for libcttmetrics.so (required by 'metrics_monitor' sample)
- ln -s "../../opt/intel/mediasdk/samples/_bin/x64/libcttmetrics.so" "${pkgdir}/usr/lib"
+ ln -s ../../opt/intel/mediasdk/samples/_bin/x64/libcttmetrics.so "${pkgdir}/usr/lib"
+
+ # remove broken binary sample (needs libgtest.so.0 - unavailable)
+ rm "${pkgdir}/opt/intel/mediasdk/samples/_bin/x64/test_monitor"
- # fix libmfx permissions
- chmod 644 "${pkgdir}/opt/intel/mediasdk/lib/lin_x64/libmfx.a"
+ # fix broken symlink for plugins
+ rm "${pkgdir}/opt/intel/mediasdk/lib64/mfx"
+ ln -s ../plugins "${pkgdir}/opt/intel/mediasdk/lib64/mfx"
# do not force the use of 'iHD' libva driver by default (let user choose)
- local _info='# uncomment the LIBVA_DRIVER_NAME line to use the Intel Media Driver (iHD) for VAAPI'
- sed -i "2i${_info}" "$pkgdir"/etc/profile.d/intel-mediasdk.*sh
- sed -i '/^export[[:space:]]LIBVA_DRIVER_NAME/s/^/#/' "${pkgdir}/etc/profile.d/intel-mediasdk.sh"
- sed -i '/^setenv[[:space:]]LIBVA_DRIVER_NAME/s/^/#/' "${pkgdir}/etc/profile.d/intel-mediasdk.csh"
+ local _info='# uncomment the LIBVA lines bellow to use the Intel Media Driver (iHD) for VAAPI'
+ sed -i "2i${_info}" "$pkgdir"/etc/profile.d/intel-mediasdk.{,c}sh
+ sed -i '3,4s/^/#/' "$pkgdir"/etc/profile.d/intel-mediasdk.{,c}sh
# license
cd "$srcdir"
diff --git a/intel-media-stack-bin.install b/intel-media-stack-bin.install
index b6dde205475..953b6ac25ae 100644
--- a/intel-media-stack-bin.install
+++ b/intel-media-stack-bin.install
@@ -1,7 +1,7 @@
post_install() {
printf '%s\n' 'In order to use the the Intel Media Driver for VAAPI you need to set the'
printf '%s\n' "'LIBVA_DRIVER_NAME' environment variable to 'iHD'. You can do this, for"
- printf '%s\n' "example, by uncommenting the proper line in '/etc/profile.d/intel-mediasdk.sh'"
+ printf '%s\n' "example, by uncommenting the proper lines in '/etc/profile.d/intel-mediasdk.sh'"
printf '%s\n' '(relogin after).'
}