mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
Vulkan-Tools: add cube build_option
This commit is contained in:
parent
1f2be58c19
commit
e9321dac76
1 changed files with 8 additions and 8 deletions
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'Vulkan-Tools'
|
# Template file for 'Vulkan-Tools'
|
||||||
pkgname=Vulkan-Tools
|
pkgname=Vulkan-Tools
|
||||||
version=1.1.77.0
|
version=1.1.77.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-sdk-${version}"
|
wrksrc="${pkgname}-sdk-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DGLSLANG_INSTALL_DIR=/usr
|
configure_args="-DGLSLANG_INSTALL_DIR=/usr -DBUILD_CUBE=$(vopt_if cube ON OFF)
|
||||||
-DVULKAN_HEADERS_INSTALL_DIR=${XBPS_CROSS_BASE}/usr"
|
-DVULKAN_HEADERS_INSTALL_DIR=${XBPS_CROSS_BASE}/usr"
|
||||||
hostmakedepends="python3 pkg-config glslang"
|
hostmakedepends="python3 pkg-config $(vopt_if cube glslang)"
|
||||||
makedepends="Vulkan-Headers vulkan-loader libxcb-devel libxkbcommon-devel
|
makedepends="Vulkan-Headers vulkan-loader libxcb-devel libxkbcommon-devel
|
||||||
wayland-devel libwayland-egl libXrandr-devel"
|
wayland-devel libwayland-egl libXrandr-devel"
|
||||||
short_desc="Official Vulkan tools and utilities"
|
short_desc="Official Vulkan tools and utilities"
|
||||||
|
@ -16,9 +16,9 @@ homepage="https://www.khronos.org/vulkan/"
|
||||||
distfiles="https://github.com/KhronosGroup/${pkgname}/archive/sdk-${version}.tar.gz"
|
distfiles="https://github.com/KhronosGroup/${pkgname}/archive/sdk-${version}.tar.gz"
|
||||||
checksum=15eaefa9d9370c58aac3458b3cb67909759fb4e965d737a57e7de6cc108fabc6
|
checksum=15eaefa9d9370c58aac3458b3cb67909759fb4e965d737a57e7de6cc108fabc6
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
build_options="cube"
|
||||||
# CMake Error at cube/CMakeLists.txt:188 (if):
|
desc_option_cube="Build cube vulkan demo"
|
||||||
# if given arguments:
|
|
||||||
# "STREQUAL" "x86_64"
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" -DBUILD_CUBE=OFF"
|
build_options_default="cube"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue