+50
Formula/wivrn-server.rb
+50
Formula/wivrn-server.rb
···
1
+
# Documentation: https://docs.brew.sh/Formula-Cookbook
2
+
# https://rubydoc.brew.sh/Formula
3
+
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
4
+
class WivrnServer < Formula
5
+
desc "The Linux OpenXR streaming application to standalone headsets"
6
+
homepage "https://github.com/WiVRn/WiVRn"
7
+
url "https://github.com/WiVRn/WiVRn/archive/refs/tags/v25.8.tar.gz"
8
+
sha256 "7bfb0c270cab8bb95a1cab1402f8bc320398e7fcfd2be70ef1a5d4f4a9451a71"
9
+
license "GPL-3.0"
10
+
11
+
depends_on "cmake" => :build
12
+
depends_on "eigen" => :build
13
+
depends_on "avahi" => :build
14
+
depends_on "gettext" => :build
15
+
depends_on "pulseaudio" => :build
16
+
depends_on "cli11" => :build
17
+
depends_on "librsvg" => :build
18
+
depends_on "libnotify" => :build
19
+
depends_on "nlohmann-json" => :build
20
+
depends_on "ffmpeg" => :build
21
+
depends_on "x264" => :build
22
+
depends_on "x265" => :build
23
+
24
+
def install
25
+
args = %w[
26
+
-GNinja
27
+
-DWIVRN_BUILD_CLIENT=OFF
28
+
-DCMAKE_BUILD_TYPE=RelWithDebInfo
29
+
]
30
+
31
+
system "cmake", "-B", "build-server", ".", *args, *std_cmake_args
32
+
end
33
+
34
+
def caveats
35
+
"AtomicXR's wivrn-server formula is in development. Report issues at: https://tangled.sh/@matrixfurry.com/homebrew-atomicxr/issues"
36
+
end
37
+
38
+
test do
39
+
# `test do` will create, run in and delete a temporary directory.
40
+
#
41
+
# This test will fail and we won't accept that! For Homebrew/homebrew-core
42
+
# this will need to be a test that verifies the functionality of the
43
+
# software. Run the test with `brew test wivrn-server`. Options passed
44
+
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
45
+
#
46
+
# The installed folder is not in the path, so use the entire path to any
47
+
# executables being tested: `system bin/"program", "do", "something"`.
48
+
system "false"
49
+
end
50
+
end