37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# Description: Vulkan tools
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glslang vulkan-loader
|
|
# Optional: wayland
|
|
|
|
name=vulkan-tools
|
|
_name=Vulkan-Tools-sdk
|
|
version=1.3.243.0
|
|
_version=sdk-$version
|
|
#_name=Vulkan-Tools
|
|
#version=1.3.213
|
|
#_version=v$version
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/$_version/$_name-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst wayland || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_TOOLS \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
|
|
-D GLSLANG_INSTALL_DIR=/usr \
|
|
-D BUILD_CUBE=True \
|
|
-D BUILD_VULKANINFO=True \
|
|
-D CUBE_WSI_SELECTION='XCB' \
|
|
-D BUILD_WSI_XCB_SUPPORT=True \
|
|
-D BUILD_WSI_XLIB_SUPPORT=True \
|
|
-D BUILD_ICD=OFF \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|