Vulkan-Tools: add cube build_option

This commit is contained in:
maxice8 2018-08-04 21:58:02 -03:00
parent 1f2be58c19
commit e9321dac76
1 changed files with 8 additions and 8 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'Vulkan-Tools'
pkgname=Vulkan-Tools
version=1.1.77.0
revision=1
revision=2
wrksrc="${pkgname}-sdk-${version}"
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"
hostmakedepends="python3 pkg-config glslang"
hostmakedepends="python3 pkg-config $(vopt_if cube glslang)"
makedepends="Vulkan-Headers vulkan-loader libxcb-devel libxkbcommon-devel
wayland-devel libwayland-egl libXrandr-devel"
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"
checksum=15eaefa9d9370c58aac3458b3cb67909759fb4e965d737a57e7de6cc108fabc6
if [ "$CROSS_BUILD" ]; then
# CMake Error at cube/CMakeLists.txt:188 (if):
# if given arguments:
# "STREQUAL" "x86_64"
configure_args+=" -DBUILD_CUBE=OFF"
build_options="cube"
desc_option_cube="Build cube vulkan demo"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="cube"
fi