mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
require 'buildsystems/cmake'
|
|
|
|
class Vulkan_icd_loader < CMake
|
|
description 'Vulkan Installable Client Driver ICD Loader'
|
|
homepage 'https://github.com/KhronosGroup/Vulkan-Loader'
|
|
version '1.4.347'
|
|
license 'Apache-2.0'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://github.com/KhronosGroup/Vulkan-Loader.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '81a1343273f8a86432677ffd86d107aec8662df046fb434e0283d589f681774a',
|
|
armv7l: '81a1343273f8a86432677ffd86d107aec8662df046fb434e0283d589f681774a',
|
|
x86_64: '29d286617e23ef1efb808b6f253fdd85c32fd64c39efc90d581b7a478f7bf9b9'
|
|
})
|
|
|
|
depends_on 'glibc' => :library
|
|
depends_on 'libxrandr' => :build
|
|
depends_on 'vulkan_headers' => :build
|
|
depends_on 'wayland' => :build
|
|
|
|
def self.patch
|
|
# https://github.com/KhronosGroup/Vulkan-Loader/pull/1586
|
|
system "sed -i 's/armhf/armhf|armv7l|armv8l/g' loader/CMakeLists.txt"
|
|
end
|
|
|
|
cmake_options "-DUPDATE_DEPS=On \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=#{CREW_PREFIX} \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
|
|
-DCMAKE_INSTALL_DATADIR=#{CREW_PREFIX}/share \
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
-DBUILD_TESTS=Off \
|
|
-DBUILD_WSI_XCB_SUPPORT=On \
|
|
-DBUILD_WSI_XLIB_SUPPORT=On \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On"
|
|
end
|