blob: 560d4c00667500d40782294665e0c04ed1b2a062 (
plain)
1 # Description: Vulkan tools
2 # URL: https://www.khronos.org/vulkan/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: glslang vulkan-loader
5 # Optional: wayland
6
7 name=vulkan-tools
8 _name=Vulkan-Tools-sdk
9 version=1.3.236.0
10 _version=sdk-$version
11 #_name=Vulkan-Tools
12 #version=1.3.213
13 #_version=v$version
14 release=1
15 source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/$_version/$_name-$version.tar.gz)
16
17 build() {
18 prt-get isinst wayland || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
19
20 cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_TOOLS \
21 -D CMAKE_INSTALL_PREFIX=/usr \
22 -D CMAKE_BUILD_TYPE=Release \
23 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
24 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
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 --install build
36 }
|