1
0
forked from ports/opt
opt/vulkan-tools/Pkgfile

33 lines
956 B
Plaintext
Raw Normal View History

2019-04-28 13:07:24 +10:00
# Description: Vulkan tools
# URL: https://www.khronos.org/vulkan/
2023-08-18 16:14:28 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: glslang volk
2020-10-24 01:57:22 +11:00
# Optional: wayland
2019-04-28 13:07:24 +10:00
name=vulkan-tools
2023-11-11 19:29:11 +01:00
_name=Vulkan-Tools
2024-03-22 21:57:03 +01:00
version=1.3.280.0
2023-11-11 19:29:11 +01:00
_version=vulkan-sdk-$version
2020-06-07 18:00:50 +10:00
release=1
2022-05-22 20:22:49 +10:00
source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/$_version/$_name-$version.tar.gz)
2019-04-28 13:07:24 +10:00
build() {
2021-04-05 15:26:52 +10:00
prt-get isinst wayland || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
2023-11-11 19:29:11 +01:00
cmake -S $_name-$_version -B build -G Ninja $PKGMK_VULKAN_TOOLS \
2021-04-05 15:26:52 +10:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2022-05-22 20:22:49 +10:00
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
2021-04-05 15:26:52 +10:00
-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 \
2020-10-24 01:57:22 +11:00
-Wno-dev
2019-04-28 13:07:24 +10:00
2020-06-07 18:00:50 +10:00
cmake --build build
2020-07-08 23:14:57 +10:00
DESTDIR=$PKG cmake --install build
2019-04-28 13:07:24 +10:00
}