media-libs/openxr-loader - 9999 (guru)

Search

Install

Install this version:

emerge -a =media-libs/openxr-loader-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-libs/openxr-loader-9999

Or alternatively:

emerge --autounmask-write -a =media-libs/openxr-loader-9999

Package Information

Description:
OpenXR loader
Homepage:
https://github.com/KhronosGroup/OpenXR-SDK
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 0/9999
View Raw Ebuild
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN=OpenXR-SDK
inherit cmake-multilib

if [[ ${PV} == *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
	SLOT="0"
else
	SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
	S="${WORKDIR}/${MY_PN}-release-${PV}"
	SLOT="0/${PV}"
fi

DESCRIPTION="OpenXR loader"
HOMEPAGE="https://github.com/KhronosGroup/OpenXR-SDK"

LICENSE="Apache-2.0"

IUSE="+wayland +X"
REQUIRED_USE="|| ( wayland X )"

DEPEND="
	media-libs/vulkan-loader[${MULTILIB_USEDEP}]
	media-libs/mesa[${MULTILIB_USEDEP}]
	dev-libs/jsoncpp:=[${MULTILIB_USEDEP}]
	wayland? (
		dev-libs/wayland[${MULTILIB_USEDEP}]
		dev-libs/wayland-protocols
	)
	X? (
		x11-libs/libxcb[${MULTILIB_USEDEP}]
		x11-libs/xcb-util-keysyms
		x11-libs/libXrandr[${MULTILIB_USEDEP}]
		x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
	)
"
RDEPEND="${DEPEND}"
BDEPEND="wayland? ( dev-util/wayland-scanner )"

src_prepare() {
	sed -i 's;LICENSE_DEST share/doc/openxr;LICENSE_DEST ${CMAKE_INSTALL_DOCDIR};' CMakeLists.txt || die

	# jsoncpp: system version is used
	# jnipp, android-jni-wrappers: Android-only
	rm -fr src/external/ || die

	cmake_src_prepare
}

multilib_src_configure() {
	local mycmakeargs=(
		-DBUILD_WITH_SYSTEM_JSONCPP=ON
		-DBUILD_WITH_XLIB_HEADERS=$(usex X)
		-DBUILD_WITH_XCB_HEADERS=$(usex X)
		-DBUILD_WITH_WAYLAND_HEADERS=$(usex wayland)
		-DPRESENTATION_BACKEND=$(usex X xlib wayland)
	)

	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-libs/openxr-loader | euse -E <flag> -p media-libs/openxr-loader | euse -D <flag> -p media-libs/openxr-loader

Global/Standard Flags

wayland
Default: Enabled (+)
X
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	media-libs/vulkan-loader[]
	media-libs/mesa[]
	dev-libs/jsoncpp:=[]
	wayland? (
		dev-libs/wayland[]
		dev-libs/wayland-protocols
	)
	X? (
		x11-libs/libxcb[]
		x11-libs/xcb-util-keysyms
		x11-libs/libXrandr[]
		x11-libs/libXxf86vm[]
	)

RDEPEND

	media-libs/vulkan-loader[]
	media-libs/mesa[]
	dev-libs/jsoncpp:=[]
	wayland? (
		dev-libs/wayland[]
		dev-libs/wayland-protocols
	)
	X? (
		x11-libs/libxcb[]
		x11-libs/xcb-util-keysyms
		x11-libs/libXrandr[]
		x11-libs/libXxf86vm[]
	)

BDEPEND

wayland? ( dev-util/wayland-scanner )