Repository navigation
Expand file tree
/
Copy pathintel-media-driver.rb
More file actions
53 lines (46 loc) · 1.63 KB
/
Copy pathintel-media-driver.rb
File metadata and controls
53 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
class IntelMediaDriver < Formula
desc "Media driver for VAAPI"
homepage "https://github.com/intel/media-driver"
url "https://github.com/intel/media-driver/archive/refs/tags/intel-media-26.2.4.tar.gz"
sha256 "a23185fca05c8fa8bdec09ea9ee8a20361163c87035ec978de4e2bb048a55534"
license "Apache-2.0"
livecheck do
url :stable
strategy :github_latest
regex(/^intel-media[._-]v?(\d+(?:\.\d+)+)$/i)
end
bottle do
root_url "https://ghcr.io/v2/maxim-belkin/xorg"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0053c892de651b9b91dae3a53b69c435a78656e14402449df5939fd73103d92b"
end
depends_on "cmake" => :build
depends_on "maxim-belkin/xorg/intel-gmmlib" => :build
depends_on "pkg-config" => :build
depends_on "libva"
def install
# Fix cmake_minimum_required(<3.5) rejected by CMake >= 3.30
%w[
os_release_info.cmake
cmrtlib/CMakeLists.txt
cmrtlib/linux/CMakeLists.txt
Tools/MediaDriverTools/GenDmyHex/CMakeLists.txt
Tools/MediaDriverTools/GenKrnBin/CMakeLists.txt
Tools/MediaDriverTools/KernelBinToSource/CMakeLists.txt
Tools/MediaDriverTools/KrnToHex/CMakeLists.txt
Tools/MediaDriverTools/KrnToHex_IGA/CMakeLists.txt
].each do |f|
inreplace f, /cmake_minimum_required\s*\(VERSION \d+\.\d+(\.\d+)?\)/,
"cmake_minimum_required(VERSION 3.5)"
end
args = std_cmake_args + %w[
-DBUILD_TYPE=Release
-DUFO_MARCH=x86_64
]
system "cmake", "-S", ".", "-B", "build", *args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
assert_predicate lib, :directory?
end
end