mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 04:31:30 +00:00
25 lines
1.0 KiB
Makefile
25 lines
1.0 KiB
Makefile
PKG_NAME="vulkan-tools"
|
|
PKG_VERSION="1.2.187"
|
|
PKG_SHA256="a5629f519871d3c5881b05a33c3dfa252bd0d3b4df60be1023903c191025f47e"
|
|
PKG_LICENSE="Apache 2.0"
|
|
PKG_SITE="https://github.com/KhronosGroup/Vulkan-Tools"
|
|
PKG_URL="https://github.com/KhronosGroup/Vulkan-tools/archive/v${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain cmake:host vulkan-loader"
|
|
PKG_LONGDESC="This project provides Khronos official Vulkan Tools and Utilities."
|
|
|
|
pre_configure_target() {
|
|
PKG_CMAKE_OPTS_TARGET="-DBUILD_ICD=Off \
|
|
-DINSTALL_ICD=Off \
|
|
-DBUILD_CUBE=off"
|
|
|
|
# Disable Wayland WSI support
|
|
sed -e "s/Build Wayland WSI support\" ON/Build Wayland WSI support\" OFF/" -i ${PKG_BUILD}/cube/CMakeLists.txt
|
|
sed -e "s/Build Wayland WSI support\" ON/Build Wayland WSI support\" OFF/" -i ${PKG_BUILD}/vulkaninfo/CMakeLists.txt
|
|
}
|
|
|
|
pre_make_target() {
|
|
# Fix cross compiling
|
|
find ${PKG_BUILD} -name flags.make -exec sed -i "s:isystem :I:g" \{} \;
|
|
find ${PKG_BUILD} -name build.ninja -exec sed -i "s:isystem :I:g" \{} \;
|
|
}
|