blob: 6a8e2df1b1468b03294a85c6f77cac2c2377d348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=intel-media-driver
pkgver=19.4.0
pkgrel=1
pkgdesc="Intel Media Driver for VAAPI - Broadwell+ iGPUs"
url="https://github.com/intel/media-driver"
arch="x86_64"
license="BSD-3-Clause AND MIT"
makedepends="
cmake
intel-gmmlib-dev
libva-dev
libpciaccess-dev
"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/media-driver/archive/intel-media-${pkgver}r.tar.gz"
builddir="$srcdir/media-driver-intel-media-${pkgver}r"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DINSTALL_DRIVER_SYSCONF=OFF \
-Wno-dev \
${CMAKE_CROSSOPTS} .
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="6235ea81aba81da10b9dcd7e799f29ceb1737ae1b60ae7c6e1055619dafed2620a538e7da7d36b17fe0b6d209a39a02aa31ac1445051ba80a4c62b29b0f90691 intel-media-driver-19.4.0.tar.gz"
|