1 # Maintainer: Daniel Bermond <dbermond@archlinux.org>
3 pkgname=onevpl-intel-gpu
6 pkgdesc='oneVPL runtime implementation for Intel GPUs (Tiger Lake and newer)'
8 url='https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html'
10 depends=('intel-media-driver' 'libdrm' 'libva')
12 provides=('onevpl-runtime')
13 source=("https://github.com/oneapi-src/oneVPL-intel-gpu/archive/intel-onevpl-${pkgver}/${pkgname}-${pkgver}.tar.gz"
14 '010-onevpl-intel-gpu-disable-verbose-makefile.patch')
15 sha256sums=('c2a246034b23c12551b528be98489ad534839c3485ef6a20a2678e2d03e0d0b1'
16 'c6b17b7026d16d02c3cab7b5081366c24021a86fa173eaee5db310691ce76879')
19 patch -d "oneVPL-intel-gpu-intel-onevpl-${pkgver}" -Np1 -i "${srcdir}/010-onevpl-intel-gpu-disable-verbose-makefile.patch"
23 export CFLAGS+=' -DNDEBUG'
24 export CXXFLAGS+=' -DNDEBUG'
25 cmake -B build -S "oneVPL-intel-gpu-intel-onevpl-${pkgver}" \
27 -DCMAKE_BUILD_TYPE:STRING='None' \
28 -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
29 -DBUILD_TESTS:BOOL='OFF' \
30 -DMFX_ENABLE_AENC:BOOL='ON' \
36 DESTDIR="$pkgdir" cmake --install build
37 install -D -m644 "oneVPL-intel-gpu-intel-onevpl-${pkgver}"/{LICENSE,NOTICE} -t "${pkgdir}/usr/share/licenses/${pkgname}"