31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'libclc'
|
|
pkgname=libclc
|
|
version=17.0.6
|
|
revision=1
|
|
build_style=cmake
|
|
# disable clspv (failing tests, we don't ship it)
|
|
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
|
-DLIBCLC_TARGETS_TO_BUILD=amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl;spirv-mesa3d-;spirv64-mesa3d-"
|
|
hostmakedepends="llvm17-devel python3 libedit-devel libffi-devel
|
|
ncurses-devel zlib-devel SPIRV-LLVM-Translator"
|
|
short_desc="Open implementation of the OpenCL C programming language"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause, MIT"
|
|
homepage="https://libclc.llvm.org"
|
|
distfiles="https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/libclc-${version}.src.tar.xz"
|
|
checksum=122f641d94d5dfbb3c37534f2b76612fa59d15c36c2a4917369a85eaaca32148
|
|
replaces="libclc-git>=0"
|
|
|
|
do_configure() {
|
|
# We really do a native build.
|
|
# The outcome is just header files.
|
|
unset CC CXX LD CFLAGS CXXFLAGS LDFLAGS
|
|
mkdir -p build
|
|
cd build
|
|
cmake -GNinja ${configure_args} ..
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.TXT
|
|
}
|