summaryrefslogtreecommitdiff
path: root/vulkan-loader/Pkgfile
blob: 115cc6f29bf1ce9246b69c8c3a0edbec573280c6 (plain)
    1 # Description: Vulkan ICD desktop loader
    2 # URL: https://www.khronos.org/vulkan/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: vulkan-headers xorg-libxrandr
    5 
    6 name=vulkan-loader
    7 _name=Vulkan-Loader-sdk
    8 version=1.3.216.0
    9 _version=sdk-$version
   10 #name=Vulkan-Loader
   11 #version=1.3.213
   12 #_version=v$version
   13 release=1
   14 source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/$_version/$_name-$version.tar.gz)
   15 
   16 build() {
   17 	prt-get isinst ninja && PKGMK_VULKAN_LOADER+=' -G Ninja'
   18 	prt-get isinst wayland || PKGMK_VULKAN_LOADER+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
   19 
   20 	cmake -S $_name-$version -B build $PKGMK_VULKAN_LOADER \
   21 		-D CMAKE_INSTALL_PREFIX=/usr \
   22 		-D CMAKE_INSTALL_LIBDIR=lib \
   23 		-D CMAKE_BUILD_TYPE=Release \
   24 		-D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
   25 		-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
   26 		-D CMAKE_SKIP_RPATH=ON \
   27 		-D BUILD_TESTS=OFF
   28 
   29 	cmake --build build
   30 	DESTDIR=$PKG cmake --install build
   31 }

Generated by cgit