2018-08-02 01:07:15 +10:00
|
|
|
# Description: Vulkan tools
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2024-01-21 10:51:53 +01:00
|
|
|
# Depends on: volk-32 vulkan-tools
|
2020-07-24 18:36:30 +10:00
|
|
|
# Optional: wayland-32
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
name=vulkan-tools-32
|
2023-11-11 19:30:27 +01:00
|
|
|
_name=Vulkan-Tools
|
2024-05-16 12:04:41 +02:00
|
|
|
version=1.3.283.0
|
2023-11-11 19:30:27 +01:00
|
|
|
_version=vulkan-sdk-$version
|
2018-08-02 01:07:15 +10:00
|
|
|
release=1
|
2023-11-11 19:30:27 +01:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/$_version/$_name-$version.tar.gz)
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
build() {
|
2021-04-11 01:41:19 +10:00
|
|
|
prt-get isinst wayland-32 || PKGMK_VULKAN_TOOLS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
2022-08-21 09:04:08 +02:00
|
|
|
prt-get isinst wayland-32 && export PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig:/usr/share/pkgconfig
|
2021-04-11 01:41:19 +10:00
|
|
|
|
2018-08-02 01:07:15 +10:00
|
|
|
export ASFLAGS='--32'
|
|
|
|
|
2023-11-11 19:30:27 +01:00
|
|
|
cmake -S $_name-$_version -B build -G Ninja $PKGMK_VULKAN_TOOLS \
|
2021-04-11 01:41:19 +10:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
|
|
-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 \
|
2020-11-01 16:48:30 +11:00
|
|
|
-Wno-dev
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2020-06-07 18:41:52 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
for app in $PKG/usr/bin/* ; do
|
|
|
|
mv $app $app-32
|
|
|
|
done
|
|
|
|
}
|