36 lines
976 B
Plaintext
36 lines
976 B
Plaintext
# Description: Vulkan tools
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: glslang vulkan-loader-32
|
|
# Optional: wayland-32
|
|
|
|
name=vulkan-tools-32
|
|
version=1.2.154.0
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-sdk-$version.tar.gz)
|
|
|
|
build() {
|
|
export ASFLAGS='--32'
|
|
|
|
cmake -SVulkan-Tools-sdk-$version -Bbuild -GNinja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DGLSLANG_INSTALL_DIR=/usr \
|
|
-DBUILD_CUBE=True \
|
|
-DBUILD_VULKANINFO=True \
|
|
-DCUBE_WSI_SELECTION=XCB \
|
|
-DBUILD_WSI_XCB_SUPPORT=True \
|
|
-DBUILD_WSI_XLIB_SUPPORT=True \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland-32 &> /dev/null && echo ON || echo OFF)" \
|
|
-DBUILD_ICD=OFF \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --build build --target install
|
|
|
|
for app in $PKG/usr/bin/* ; do
|
|
mv $app $app-32
|
|
done
|
|
}
|