aports/community/ispc/APKBUILD
2025-06-10 17:42:37 +00:00

45 lines
1.2 KiB
Text

# Contributor: Leon Marz <main@lmarz.org>
# Maintainer: Leon Marz <main@lmarz.org>
pkgname=ispc
pkgver=1.27.0
pkgrel=0
pkgdesc="Intel SPMD Program Compiler"
url="https://ispc.github.io/"
arch="x86_64 aarch64" # ispc only supports these arches
license="BSD-3-Clause"
_llvmver=19
makedepends="cmake
bison
clang$_llvmver-dev
flex
llvm$_llvmver-dev
llvm$_llvmver-test-utils
m4
python3
samurai
"
source="$pkgname-$pkgver.tar.gz::https://github.com/ispc/ispc/archive/v$pkgver.tar.gz"
options="!check" # ctest does not find a testsuite
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_C_COMPILER="/usr/lib/llvm$_llvmver/bin/clang" \
-DCMAKE_CXX_COMPILER="/usr/lib/llvm$_llvmver/bin/clang++" \
-DLLVM_CONFIG_EXECUTABLE="/usr/lib/llvm$_llvmver/bin/llvm-config" \
-DISPC_INCLUDE_EXAMPLES=OFF \
-DISPC_INCLUDE_RT=OFF \
-DISPC_SLIM_BINARY=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
d1b2e0561e22bcf96c57ffd06820e954626a8d80f571bfbc05b8ab3ad49e32c1057f1df20e4238237544ce86f1a29dc1e9d019dc5cd89333d9e2b32ac05cd68c ispc-1.27.0.tar.gz
"