blob: f8852cca4b4e964a4d689dc3e447ae189ee90e14 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="OpenVR over OpenXR compatibility layer"
HOMEPAGE="https://gitlab.com/znixian/OpenOVR"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/znixian/OpenOVR.git"
EGIT_BRANCH="openxr"
else
KEYWORDS="~amd64"
fi
LICENSE="GPL-3 Apache-2.0 MIT"
SLOT="0"
DEPEND="
dev-lang/python
dev-util/vulkan-headers
media-libs/libglvnd[X]
media-libs/openxr-loader
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/0001-Add-install-target.patch"
)
src_configure()
{
# Installing to /usr would not work with Steam bacause pressure vessel
# sandbox mounts /usr as /run/host/usr and openvr path would point to a
# non-existing location.
#
# Pressure vessel would need to be fixed and patch the location
# as it does for vulkan and other similar configuration files.
local mycmakeargs=(
"-DCMAKE_INSTALL_PREFIX=/opt"
# Required for Proton: https://gitlab.com/znixian/OpenOVR/-/issues/416
"-DUSE_SYSTEM_OPENXR=OFF"
# FIXME: fails because GLM_ENABLE_EXPERIMENTAL is unset
"-DUSE_SYSTEM_GLM=OFF"
)
cmake_src_configure
}
src_install()
{
cmake_src_install
insinto /opt/OpenComposite
doins "${FILESDIR}/openvrpaths.vrpath"
}
pkg_postinst()
{
elog "For applications to use OpenComposite, symlink"
elog "~/.config/openvr/openvrpaths.vrpath to /opt/OpenComposite/openvrpaths.vrpath."
}
|