blob: 77ec8c728dc31c4adb59839344b3bb9f6266eaa5 (
plain)
1 # Description: Vulkan tools
2 # URL: https://www.khronos.org/vulkan/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: glslang vulkan-loader-32 vulkan-tools
5 # Optional: wayland-32
6
7 name=vulkan-tools-32
8 version=1.3.216.0
9 release=1
10 source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-$version.tar.gz)
11
12 build() {
13 prt-get isinst ninja && PKGMK_VULKAN_TOOLS+=' -G Ninja'
14 prt-get isinst wayland-32 || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
15
16 export ASFLAGS='--32'
17
18 cmake -S Vulkan-Tools-sdk-$version -B build $PKGMK_VULKAN_TOOLS \
19 -D CMAKE_INSTALL_PREFIX=/usr \
20 -D CMAKE_INSTALL_LIBDIR=lib32 \
21 -D CMAKE_BUILD_TYPE=Release \
22 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
23 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
24 -D GLSLANG_INSTALL_DIR=/usr \
25 -D BUILD_CUBE=True \
26 -D BUILD_VULKANINFO=True \
27 -D CUBE_WSI_SELECTION=XCB \
28 -D BUILD_WSI_XCB_SUPPORT=True \
29 -D BUILD_WSI_XLIB_SUPPORT=True \
30 -D BUILD_ICD=OFF \
31 -Wno-dev
32
33 cmake --build build
34 DESTDIR=$PKG cmake --build build --target install
35
36 for app in $PKG/usr/bin/* ; do
37 mv $app $app-32
38 done
39 }
|