Skip to content

Commit

Permalink
sunshine: enable hardware decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
miwu04 authored and MingcongBai committed Nov 2, 2024
1 parent c97e858 commit 37309cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
23 changes: 19 additions & 4 deletions app-multimedia/sunshine/autobuild/defines
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,34 @@ PKGNAME=sunshine
PKGDES="A Gamestream host for Moonlight"
PKGSEC=video
PKGDEP="pulseaudio libdrm libevdev icu wayland openssl ffmpeg miniupnpc \
libnotify libappindicator"
libnotify libappindicator libvdpau mesa"
PKGDEP__AMD64="${PKGDEP} intel-media-driver"
PKGRECOM="avahi"
BUILDDEP="nodejs"
BUILDDEP="nodejs ffnvcodec"
BUILDDEP__AMD64="${BUILDDEP} cuda"
BUILDDEP__ARM64="${BUILDDEP} cuda"
PKGSUG__AMD64="cuda"
PKGSUG__ARM64="cuda"

ABTYPE=cmakeninja

# SUNSHINE_ASSETS_DIR is set to make data files follow FHS, otherwise it will
# come at /usr/assets
CMAKE_AFTER="-DSUNSHINE_ENABLE_CUDA=OFF \
-DSUNSHINE_ENABLE_DRM=ON \
CMAKE_AFTER="-DSUNSHINE_ENABLE_DRM=ON \
-DSUNSHINE_ENABLE_X11=ON \
-DSUNSHINE_ENABLE_WAYLAND=ON \
-DSUNSHINE_ASSETS_DIR=share/sunshine"

CMAKE_AFTER__AMD64="${CMAKE_AFTER} \
-DSUNSHINE_ENABLE_CUDA=ON \
-DCMAKE_CUDA_COMPILER:PATH=/usr/lib/cuda/bin/nvcc"

CMAKE_AFTER__ARM64="${CMAKE_AFTER} \
-DSUNSHINE_ENABLE_CUDA=ON \
-DCMAKE_CUDA_COMPILER:PATH=/usr/lib/cuda/bin/nvcc"

CMAKE_AFTER__PPC64EL="${CMAKE_AFTER} \
-DSUNSHINE_ENABLE_CUDA=OFF"

# FIXME: Links against bundled FFmpeg binaries.
FAIL_ARCH="!(amd64|arm64|ppc64el)"
1 change: 1 addition & 0 deletions app-multimedia/sunshine/spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VER=0.23.1
REL=1
SRCS="git::commit=tags/v${VER};copy-repo=true::https://github.com/LizardByte/Sunshine"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=236300"

0 comments on commit 37309cb

Please sign in to comment.