diff --git a/spirv-llvm-translator-32/.32bit b/spirv-llvm-translator-32/.32bit new file mode 100644 index 00000000..e69de29b diff --git a/spirv-llvm-translator-32/.footprint b/spirv-llvm-translator-32/.footprint new file mode 100644 index 00000000..6cdadd6c --- /dev/null +++ b/spirv-llvm-translator-32/.footprint @@ -0,0 +1,5 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib32/ +-rw-r--r-- root/root usr/lib32/libLLVMSPIRVLib.a +drwxr-xr-x root/root usr/lib32/pkgconfig/ +-rw-r--r-- root/root usr/lib32/pkgconfig/LLVMSPIRVLib.pc diff --git a/spirv-llvm-translator-32/.signature b/spirv-llvm-translator-32/.signature new file mode 100644 index 00000000..e7e83ca6 --- /dev/null +++ b/spirv-llvm-translator-32/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/compat-32.pub +RWSwxGo/zH7eXZ/DKd2uQEFFKJQqNK6RTn+fE4TD6LUSgkG2Rn7VDB54fE6YWG/HGzYdabLjW+45e5lFMXc9oH1A4ojQ96QPAgw= +SHA256 (Pkgfile) = 3c6e8e367cced7d07ca5bbbda31720b2b7dca8d3f55cb6364dbefa84cb5cc35f +SHA256 (.footprint) = 443469f101db243475f988da3d7a09640035c4cd792636a39ff044c3b6641d70 +SHA256 (spirv-llvm-translator-19.1.2.tar.gz) = 67be5fd119a0a575b82289f870064198484eb41f0591f557166a6c1884c906bf diff --git a/spirv-llvm-translator-32/Pkgfile b/spirv-llvm-translator-32/Pkgfile new file mode 100644 index 00000000..d9723d6c --- /dev/null +++ b/spirv-llvm-translator-32/Pkgfile @@ -0,0 +1,34 @@ +# Description: A tool and a library for bi-directional translation between SPIR-V and LLVM IR +# URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator +# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu +# Depends on: llvm-32 spirv-tools-32 + +name=spirv-llvm-translator-32 +version=19.1.2 +release=1 +source=(https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v$version/spirv-llvm-translator-$version.tar.gz) + +build() { + prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')" + + cmake -S SPIRV-LLVM-Translator-$version -B build -G Ninja $PKGMK_SLT \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib32 \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ + -D CMAKE_POSITION_INDEPENDENT_CODE=ON \ + -D CMAKE_SKIP_RPATH=ON \ + -D LLVM_BUILD_TOOLS=ON \ + -D CCACHE_ALLOWED=OFF \ + -D LLVM_DIR=/usr/lib32/cmake/llvm \ + -D LLVM_SPIRV_BUILD_EXTERNAL=YES \ + -D LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \ + -D FETCHCONTENT_FULLY_DISCONNECTED=ON \ + -Wno-dev + + cmake --build build + DESTDIR=$PKG cmake --install build + + rm -r $PKG/usr/{bin,include} +}