Skip to content

Commit

Permalink
vulkan-tools: initial commit, v1.3.261.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Dec 10, 2023
1 parent 8e41761 commit e06a19b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vulkan-tools/.footprint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/vkcube
-rwxr-xr-x root/root usr/bin/vkcubepp
-rwxr-xr-x root/root usr/bin/vulkaninfo
1 change: 1 addition & 0 deletions vulkan-tools/.md5sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
23ed257292516fbef2bbe09b0f3aad69 Vulkan-Tools-sdk-1.3.261.1.tar.gz
31 changes: 31 additions & 0 deletions vulkan-tools/Pkgfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Description: Vulkan tools
# URL: https://www.khronos.org/vulkan/
# Depends on: glslang vulkan-loader
# Optional: wayland

name=vulkan-tools
version=1.3.261.1
release=1
source=https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-sdk-$version.tar.gz

build() {
pkgman isinst wayland || PKGMK_VULKAN_TOOLS=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'

cmake -S Vulkan-Tools-sdk-$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

ninja -C build -j ${JOBS:-1} -v
DESTDIR=$PKG ninja -C build install
}

0 comments on commit e06a19b

Please sign in to comment.