mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Update vulkan and ninja. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Xorg_server => 21.1.14 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Xwayland => 24.1.4 Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
41 lines
1.4 KiB
Ruby
41 lines
1.4 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.3.300'
|
|
license 'Apache-2.0'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://github.com/KhronosGroup/Vulkan-Loader.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '35b8f2cb307f971f9f86fc60c00ace788081d61517270b0b150dc002077bc561',
|
|
armv7l: '35b8f2cb307f971f9f86fc60c00ace788081d61517270b0b150dc002077bc561',
|
|
x86_64: 'a27824a2e823bc7f42b281a64977615692ff7c9ad173cd45da63e29afa7b2d0b'
|
|
})
|
|
|
|
depends_on 'glibc' # R
|
|
depends_on 'libx11' # R
|
|
depends_on 'libxcb' # R
|
|
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
|