[crux-commits] ports/opt (3.6): vulkan-tools: 1.2.162.0 -> 1.2.174

crux at crux.nu crux at crux.nu
Mon Apr 5 05:35:26 UTC 2021


commit 5867636c06b06cf1e45555ba363231f9c5622f54
Author: Danny Rawlins <contact at romster.me>
Date:   Mon Apr 5 15:26:52 2021 +1000

    vulkan-tools: 1.2.162.0 -> 1.2.174

diff --git a/vulkan-tools/.signature b/vulkan-tools/.signature
index 27f122aa7..8a26f4316 100644
--- a/vulkan-tools/.signature
+++ b/vulkan-tools/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/f7V9M3QYgGuNxByda+IRlBwsOQgIxBtsV0T/OdIUm5x4Xg16G632x71a8CI9icSMB0fkwFIU7Qig5UTwPyK4Q4=
-SHA256 (Pkgfile) = 4483a6d9ff543293d29a7801bbcca2ec75ea5ddc77900f8cbc9d279d4b234a22
+RWSE3ohX2g5d/U1vs5RDk+9sy5XN8Xmycy6j0ZztbAsyAQ0JBa37/L3wv3Mvly8fhXXZAYvXYznKVDDLuCWW9VFAaQPh331VcgI=
+SHA256 (Pkgfile) = cb1c829b2582a3e0cba088a21bb35d290abacf9349b8f0b7af0ad5c0e93fd68a
 SHA256 (.footprint) = 2193acbc7cabcf79829a7caf3821d84e01bc4e695a36a948b8eb4379bbf8150f
-SHA256 (Vulkan-Tools-sdk-1.2.162.0.tar.gz) = 8324a6dfd1bc20d4fad45c4ea56357d8354fc03e3e4529d0a4919f124d9e6106
+SHA256 (Vulkan-Tools-1.2.174.tar.gz) = c8b537d3a8f18550b8720a8a3c0006949e2575d547d88fa94858ab7413cee7de
diff --git a/vulkan-tools/Pkgfile b/vulkan-tools/Pkgfile
index 02f883a22..a8e0db0c2 100644
--- a/vulkan-tools/Pkgfile
+++ b/vulkan-tools/Pkgfile
@@ -5,22 +5,26 @@
 # Optional: wayland
 
 name=vulkan-tools
-version=1.2.162.0
+version=1.2.174
 release=1
-source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-sdk-$version.tar.gz)
+source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/v$version/Vulkan-Tools-$version.tar.gz)
 
 build() {
-	cmake -SVulkan-Tools-sdk-$version -Bbuild -GNinja \
-		-DCMAKE_INSTALL_PREFIX=/usr \
-		-DCMAKE_BUILD_TYPE=Release \
-		-DGLSLANG_INSTALL_DIR=/usr \
-		-DBUILD_CUBE=True \
-		-DBUILD_VULKANINFO=True \
-		-DCUBE_WSI_SELECTION='XCB' \
-		-DBUILD_WSI_XCB_SUPPORT=True \
-		-DBUILD_WSI_XLIB_SUPPORT=True \
-		-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland &> /dev/null && echo ON || echo OFF)" \
-		-DBUILD_ICD=OFF \
+	prt-get isinst ninja && PKGMK_VULKAN_TOOLS+=' -G Ninja'
+	prt-get isinst wayland || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
+
+	cmake -S Vulkan-Tools-$version -B build $PKGMK_VULKAN_TOOLS \
+		-D CMAKE_INSTALL_PREFIX=/usr \
+		-D CMAKE_BUILD_TYPE=Release \
+		-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
+		-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
+		-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


More information about the crux-commits mailing list