New package: SPIRV-LLVM-Translator19

This commit is contained in:
Daniel Martinez 2024-11-16 14:31:52 -05:00 committed by classabbyamp
parent 4044d000ce
commit 6f077a2404
4 changed files with 39 additions and 2 deletions

View File

@ -1000,6 +1000,7 @@ libLLVM-17.so libllvm17-17.0.6_1
libLLVM.so.18.1 libllvm18-18.1.8_1
libLLVM.so.19.1 libllvm19-19.1.0_1
libLLVMSPIRVLib.so.18.1 SPIRV-LLVM-Translator-18.1.2_1
libLLVMSPIRVLib.so.19.1 SPIRV-LLVM-Translator19-19.1.1_1
libomp.so.5 libomp-17.0.6_1
libomptarget.so.18.1 libomp-18.1.8_1
libisofs.so.6 libisofs-0.6.24_1

View File

@ -1 +0,0 @@
llvm19

View File

@ -1 +1 @@
llvm19
SPIRV-LLVM-Translator19

View File

@ -0,0 +1,37 @@
# Template file for 'SPIRV-LLVM-Translator19'
pkgname=SPIRV-LLVM-Translator19
version=19.1.1
revision=1
_llvm_ver=${version%%.*}
build_style=cmake
configure_args="-Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_SKIP_RPATH=ON
-DLLVM_SPIRV_INCLUDE_TESTS=OFF -DBUILD_SHARED_LIBS=ON
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr
-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr/lib/llvm/${_llvm_ver}
"
hostmakedepends="clang${_llvm_ver} llvm${_llvm_ver} pkg-config"
makedepends="llvm${_llvm_ver}-devel SPIRV-Headers SPIRV-Tools-devel"
short_desc="API and commands for processing SPIR-V modules - LLVM ${_llvm_ver}"
maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="NCSA"
homepage="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
distfiles="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v${version}.tar.gz"
checksum=7f6f7a1af0eb40910ddf3a7647d2186c8c5dc5a47945afa935aeec56bacf4336
alternatives="llvm-spirv:llvm-spirv:/usr/bin/llvm-spirv-${_llvm_ver}"
post_install() {
mv ${DESTDIR}/usr/bin/llvm-spirv ${DESTDIR}/usr/bin/llvm-spirv-${_llvm_ver}
vlicense LICENSE.TXT
}
SPIRV-LLVM-Translator19-devel_package() {
depends="SPIRV-LLVM-Translator${_llvm_ver}-${version}_${revision}"
conflicts="SPIRV-LLVM-Translator-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}