aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/intel-media-driver/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/intel-media-driver/APKBUILD b/community/intel-media-driver/APKBUILD
new file mode 100644
index 0000000000..ca820a55a7
--- /dev/null
+++ b/community/intel-media-driver/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=intel-media-driver
+pkgver=19.4.0
+pkgrel=0
+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=Release \
+ -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"