blob: 20add4aab0ae0aba49e2d91a454b4eebb0cb692b (
plain)
1 # Description: Vulkan loader, 32bit
2 # URL: https://www.khronos.org/vulkan/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: vulkan-loader xorg-libxrandr-32
5 # Optional: wayland-32
6
7 name=vulkan-loader-32
8 version=1.3.231.1
9 release=1
10 source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-$version/Vulkan-Loader-$version.tar.gz)
11
12 build() {
13 prt-get isinst ninja && PKGMK_VULKAN_LOADER+=' -G Ninja'
14 prt-get isinst wayland-32 || PKGMK_VULKAN_LOADER+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
15
16 export ASFLAGS='--32'
17
18 cmake -S Vulkan-Loader-sdk-$version -B build $PKGMK_VULKAN_LOADER \
19 -D CMAKE_INSTALL_PREFIX=/usr \
20 -D CMAKE_INSTALL_LIBDIR=lib32 \
21 -D CMAKE_BUILD_TYPE=Release \
22 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
23 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
24 -D CMAKE_SKIP_RPATH=ON \
25 -D BUILD_TESTS=OFF
26
27 cmake --build build
28 DESTDIR=$PKG cmake --build build --target install
29 }
|