Skip to content

Instantly share code, notes, and snippets.

@tuxuser
Created July 24, 2022 17:52
Show Gist options
  • Save tuxuser/936e5e6f60fb9b5b569b135fbcd07c54 to your computer and use it in GitHub Desktop.
Save tuxuser/936e5e6f60fb9b5b569b135fbcd07c54 to your computer and use it in GitHub Desktop.
Sunshine gamestreaming host - Gentoo ebuild
# 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