summaryrefslogtreecommitdiff
path: root/media-libs/openvr/openvr-1.23.8.ebuild
blob: e2d6970baa4f970149dcb4dd41617fffec20fab9 (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
# Copyright 2020-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8
EGIT_REPO_URI="https://github.com/ValveSoftware/openvr"

inherit cmake-multilib

DESCRIPTION="OpenVR SDK"
HOMEPAGE="https://steamvr.com"

SRC_URI="${EGIT_REPO_URI}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

IUSE="static"

PATCHES=(
	"${FILESDIR}/${PN}-libdir.patch"
)

DOCS=(
	"${S}/LICENSE"
	"${S}/README.md"
)

src_configure() {
	my_configure() {
		mycmakeargs=(
			-DBUILD_SHARED="$(usex static OFF ON)"
		)
		cmake_src_configure
	}
	multilib_parallel_foreach_abi my_configure
}