summaryrefslogtreecommitdiff
path: root/vulkan-loader/Pkgfile
blob: 5bbca9f9af4acf8f96e574072c217c994b46bba5 (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.236.0
    9 _version=sdk-$version
   10 release=1
   11 source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/$_version/$_name-$version.tar.gz)
   12 
   13 build() {
   14 	prt-get isinst wayland || PKGMK_VULKAN_LOADER+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
   15 
   16 	cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_LOADER \
   17 		-D CMAKE_INSTALL_PREFIX=/usr \
   18 		-D CMAKE_INSTALL_LIBDIR=lib \
   19 		-D CMAKE_BUILD_TYPE=Release \
   20 		-D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
   21 		-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
   22 		-D CMAKE_SKIP_RPATH=ON \
   23 		-D BUILD_TESTS=OFF
   24 
   25 	cmake --build build
   26 	DESTDIR=$PKG cmake --install build
   27 }

Generated by cgit