libclc: setup alternatives

This commit is contained in:
Daniel Martinez 2024-09-28 21:56:42 -04:00 committed by classabbyamp
parent 9df79c93d1
commit b46984a3a5
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 8 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'libclc'
pkgname=libclc
version=18.1.8
revision=1
revision=2
build_style=cmake
# disable clspv (failing tests, we don't ship it)
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
configure_args="-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm/18/ -DCMAKE_BUILD_TYPE=Release
-DLIBCLC_TARGETS_TO_BUILD=amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl;spirv-mesa3d-;spirv64-mesa3d-"
hostmakedepends="llvm18-devel python3 libedit-devel libffi-devel
ncurses-devel zlib-devel SPIRV-LLVM-Translator"
@ -16,6 +16,12 @@ distfiles="https://github.com/llvm/llvm-project/releases/download/llvmorg-${vers
checksum=905bd59e9f810d6bd0ae6874725a8f8a3c91cb416199c03f2b98b57437cfb32e
replaces="libclc-git>=0"
alternatives="
clc:/usr/share/clc:/usr/lib/llvm/18/share/clc
clc:/usr/include/clc:/usr/lib/llvm/18/include/clc
clc:/usr/share/pkgconfig/libclc.pc:/usr/lib/llvm/18/share/pkgconfig/libclc.pc
"
do_configure() {
# We really do a native build.
# The outcome is just header files.