aboutsummaryrefslogtreecommitdiffstats
path: root/community/intel-gmmlib/APKBUILD
blob: 4e2fe6fed13ce15a0a70c7fe9556cb1b4615856c (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=intel-gmmlib
pkgver=19.4.1
pkgrel=0
pkgdesc="Intel Graphics Memory Management Library"
options="!check"
url="https://github.com/intel/gmmlib/"
arch="x86_64 x86"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/gmmlib/archive/intel-gmmlib-$pkgver.tar.gz"
builddir="$srcdir/gmmlib-intel-gmmlib-$pkgver"

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" \
		-Wno-dev \
		-DRUN_TEST_SUITE=OFF \
		${CMAKE_CROSSOPTS} .
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="264f111348bbaccd6c14c31ab15c7b02e63def56b0d3effa01067fb5e696d6d3e2ad3d5a9cc3a36f33b835dda12ec3916a31d3a812443de9d5dd815e2e4cde53  intel-gmmlib-19.4.1.tar.gz"