1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/intel-graphics-compiler/APKBUILD
2021-03-03 23:07:17 +00:00

50 lines
1.9 KiB
Text

# Contributor: Dennis Krupenik <dennis@krupenik.com>
# Maintainer: Dennis Krupenik <dennis@krupenik.com>
pkgname=intel-graphics-compiler
pkgver=1.0.6410
pkgrel=0
pkgdesc="Intel® Graphics Compiler for OpenCL™"
url="https://github.com/intel/intel-graphics-compiler"
arch="x86_64"
license="MIT"
depends_dev="opencl-clang-dev"
_llvm_ver="10.0.1"
makedepends="$depends_dev bison cmake flex linux-headers llvm-static~$_llvm_ver python3"
subpackages="$pkgname-dev"
source="https://github.com/intel/intel-graphics-compiler/archive/igc-$pkgver.tar.gz
https://github.com/intel/vc-intrinsics/archive/77974f5a32e19475125531483bede9ee23935257.zip
portable-compiler-concat.patch
remove-rtld-deepbind.patch
"
builddir="$srcdir/$pkgname-igc-$pkgver"
options="!check" # no test suite upstream
prepare() {
default_prepare
mv ../vc-intrinsics-* ../vc-intrinsics
}
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DIGC_OPTION__FORCE_SYSTEM_LLVM=1 \
-DIGC_PREFERRED_LLVM_VERSION=$_llvm_ver \
-DINSTALL_SPIRVDLL=0 \
-Wno-dev \
$CMAKE_CROSSOPTS .
nice make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="31f851849b8636d5ab41a3f451c6bd41a054507e27e4e993ddd37567638e6d3e964c4bcf5afeeccfb130743b1af95062c345638b2116b1ea3b16aa31d41531b6 igc-1.0.6410.tar.gz
b5f3bec768ba8f02cb577d7426f0f7a7e55daad095dbf74cd8b378562ef5f4c0cb1f40edf50fa31197907c0cd81696d70c6fbdd12e50562ef2587df973945dac 77974f5a32e19475125531483bede9ee23935257.zip
da8430649519f5f55e09175bacbb817321dfca9403dd49c93a14cbfd55b512a7d4da6659cd63a02787345104dbcad001cc5fea7c4c3a23f30539c1dbcce2f4b0 portable-compiler-concat.patch
dd91fcfad005d4db01dbda61a4954ecc3ab9b734e3434f9c62c252b5ed64eced85c7af051cb00b8085cdfd8a04b537052467a4c9239ed6a13911666ed8f886f8 remove-rtld-deepbind.patch"