2018-08-02 01:07:15 +10:00
|
|
|
# Description: Vulkan loader, 32bit
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2019-08-30 19:22:34 +10:00
|
|
|
# Depends on: vulkan-loader xorg-libxrandr-32
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
name=vulkan-loader-32
|
2020-07-24 18:35:51 +10:00
|
|
|
version=1.2.148
|
2018-08-02 01:07:15 +10:00
|
|
|
release=1
|
2020-07-24 18:35:51 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/v$version/Vulkan-Loader-v$version.tar.gz)
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export ASFLAGS='--32'
|
|
|
|
|
2020-07-24 18:35:51 +10:00
|
|
|
cmake -SVulkan-Loader-$version -Bbuild -GNinja \
|
2018-08-02 01:07:15 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
2019-08-30 19:22:34 +10:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
|
|
-DBUILD_TESTS=False \
|
|
|
|
-DBUILD_LOADER=True \
|
|
|
|
-DBUILD_WSI_XCB_SUPPORT=True \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=True \
|
2020-06-07 18:41:29 +10:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=OFF
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2020-06-07 18:41:29 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
2018-08-02 01:07:15 +10:00
|
|
|
}
|