Created
July 24, 2022 17:52
-
-
Save tuxuser/936e5e6f60fb9b5b569b135fbcd07c54 to your computer and use it in GitHub Desktop.
Sunshine gamestreaming host - Gentoo ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2020 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=7 | |
inherit cmake-utils git-r3 | |
DESCRIPTION="Sunshine is a gamestream host for Moonlight" | |
HOMEPAGE="https://github.com/SunshineStream/Sunshine" | |
EGIT_REPO_URI="https://github.com/SunshineStream/Sunshine.git" | |
SLOT="0" | |
LICENSE="GPL-2" | |
KEYWORDS="~amd64 ~x86" | |
IUSE="libkms wayland X cuda" | |
RDEPEND=" | |
dev-libs/boost | |
dev-libs/libevdev | |
dev-libs/openssl | |
media-libs/libpulse | |
media-libs/opus | |
media-video/ffmpeg | |
libkms? ( | |
x11-libs/libdrm | |
sys-libs/libcap | |
) | |
wayland? ( | |
dev-libs/wayland | |
) | |
X? ( | |
x11-libs/libX11 | |
x11-libs/libxcb | |
x11-libs/libXfixes | |
x11-libs/libXrandr | |
x11-libs/libXtst | |
) | |
cuda? ( | |
dev-util/nvidia-cuda-sdk | |
dev-util/nvidia-cuda-toolkit | |
) | |
" | |
DEPEND="${RDEPEND}" | |
BDEPEND="" | |
DOCS=( CHANGELOG.md LICENSE NOTICE README.rst ) | |
src_configure() { | |
local mycmakeargs=( | |
-DSUNSHINE_ENABLE_DRM=$(usex libkms) | |
-DSUNSHINE_ENABLE_X11=$(usex X) | |
-DSUNSHINE_ENABLE_WAYLAND=$(usex wayland) | |
-DSUNSHINE_ENABLE_CUDA=$(usex cuda) | |
) | |
cmake-utils_src_configure | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment