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
|
2019-11-23 19:10:41 +11:00
|
|
|
version=1.1.126.0
|
2018-08-02 01:07:15 +10:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-$version/Vulkan-Loader-sdk-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd Vulkan-Loader-sdk-$version
|
|
|
|
|
|
|
|
export ASFLAGS='--32'
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
-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 \
|
2019-08-31 00:59:39 +10:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=OFF \
|
|
|
|
-GNinja
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2019-08-31 00:59:39 +10:00
|
|
|
ninja -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja install
|
2018-08-02 01:07:15 +10:00
|
|
|
}
|