[arch-commits] Commit in intel-media-sdk/trunk (PKGBUILD)
Daniel Bermond
dbermond at archlinux.org
Sat Apr 11 22:45:51 UTC 2020
Date: Saturday, April 11, 2020 @ 22:45:51
Author: dbermond
Revision: 613372
upgpkg: intel-media-sdk 20.1.0-1
Modified:
intel-media-sdk/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-11 22:45:31 UTC (rev 613371)
+++ PKGBUILD 2020-04-11 22:45:51 UTC (rev 613372)
@@ -2,8 +2,8 @@
pkgbase=intel-media-sdk
pkgname=('intel-media-sdk' 'libmfx')
-pkgver=19.4.0
-pkgrel=4
+pkgver=20.1.0
+pkgrel=1
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/'
@@ -12,9 +12,11 @@
'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")
-sha256sums=('289a40ffe73dc291461d97edf452bdc622f76e52666483fd1eb4f131d2921cd1')
+sha256sums=('964515eb5ed7720e50e010013ca21fd29ee6a34a569726839743acfe389acca9')
build() {
+ export CFLAGS+=" ${CPPFLAGS}"
+ export CXXFLAGS+=" ${CPPFLAGS}"
cmake -B build -S "MediaSDK-intel-mediasdk-${pkgver}" \
-DBUILD_ALL:BOOL='ON' \
-DBUILD_TOOLS:BOOL='ON' \
@@ -38,17 +40,16 @@
'intel-compute-runtime: for rotate_opencl plugin')
make -C build DESTDIR="$pkgdir" install
-
ln -s ../share/mfx/samples/libcttmetrics.so "${pkgdir}/usr/lib/libcttmetrics.so"
+ install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
# remove core component libmfx
[ -d 'libmfx' ] && rm -rf libmfx
- mkdir -p libmfx/lib/pkgconfig
- mv "${pkgdir}/usr/include" libmfx
+ mkdir -p libmfx/{include,lib/pkgconfig}
+ mv "${pkgdir}/usr/include/mfx" libmfx/include
mv "${pkgdir}/usr/lib/libmfx.so"* libmfx/lib
mv "${pkgdir}/usr/lib/pkgconfig/"{,lib}mfx.pc libmfx/lib/pkgconfig
-
- install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ rm -d "${pkgdir}/usr/include"
}
package_libmfx() {
@@ -55,9 +56,6 @@
pkgdesc='Intel Media SDK dispatcher library'
depends=('gcc-libs')
- # install core component libmfx into a separated package
- mkdir -p "${pkgdir}/usr"
- mv libmfx/{include,lib} "${pkgdir}/usr"
-
+ mv libmfx "${pkgdir}/usr"
install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list