blob: a0606679a9b8170dcde544f156f3d13ef57e3f6d (
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.236.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 prt-get isinst wayland-32 && export PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig:/usr/share/pkgconfig
16
17 export ASFLAGS='--32'
18
19 cmake -S Vulkan-Tools-sdk-$version -B build $PKGMK_VULKAN_TOOLS \
20 -D CMAKE_INSTALL_PREFIX=/usr \
21 -D CMAKE_INSTALL_LIBDIR=lib32 \
22 -D CMAKE_BUILD_TYPE=Release \
23 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
24 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
25 -D GLSLANG_INSTALL_DIR=/usr \
26 -D BUILD_CUBE=True \
27 -D BUILD_VULKANINFO=True \
28 -D CUBE_WSI_SELECTION=XCB \
29 -D BUILD_WSI_XCB_SUPPORT=True \
30 -D BUILD_WSI_XLIB_SUPPORT=True \
31 -D BUILD_ICD=OFF \
32 -Wno-dev
33
34 cmake --build build
35 DESTDIR=$PKG cmake --build build --target install
36
37 for app in $PKG/usr/bin/* ; do
38 mv $app $app-32
39 done
40 }
|