aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Zhu <lisp_25689@163.com>2024-08-05 14:39:24 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2024-09-16 20:14:23 +0000
commit293907b67c3829737d5218cdf9bafe0144abd2f8 (patch)
treec2778a1728a2d5588cd233fe50bb216d8e5839f1
parent833afe4f6fa662eb9e9ddbcac028a9b4db21879d (diff)
games/moonlight-embedded-devel: moonlight-embedded development version
Moonlight allows you to stream your Desktop or games from your Windows PC(sunshine or NV shield) to your FreeBSD system. In contrast to moonlight-qt, this port can grab keyboard and mouse and has full worked vaapi decoder, which helps in case of crashes. Note: This is a fork of moonlight-embedded aimed for more features and fixes for FreeBSD on amd64, not only on embedded systems. WWW: https://github.com/armin-25689/moonlight-embedded/releases/tag/v2.7.2 PR: 280632
-rw-r--r--games/Makefile1
-rw-r--r--games/moonlight-embedded-devel/Makefile72
-rw-r--r--games/moonlight-embedded-devel/distinfo3
-rw-r--r--games/moonlight-embedded-devel/pkg-descr8
4 files changed, 84 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 163b06730867..bb88fc450fe4 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -639,6 +639,7 @@
SUBDIR += moon-buggy
SUBDIR += moonlander
SUBDIR += moonlight-embedded
+ SUBDIR += moonlight-embedded-devel
SUBDIR += moonlight-qt
SUBDIR += moria
SUBDIR += motogt
diff --git a/games/moonlight-embedded-devel/Makefile b/games/moonlight-embedded-devel/Makefile
new file mode 100644
index 000000000000..fbf9bcb5ef77
--- /dev/null
+++ b/games/moonlight-embedded-devel/Makefile
@@ -0,0 +1,72 @@
+PORTNAME= moonlight-embedded-devel
+DISTVERSION= 2.7.2
+CATEGORIES= games
+MASTER_SITES= https://github.com/armin-25689/moonlight-embedded/releases/download/v${DISTVERSION}/
+
+MAINTAINER= lisp_25689@163.com
+COMMENT= Command-line moonlight implementation with keyboard-grabbing support
+WWW= https://github.com/moonlight-stream/moonlight-embedded
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
+ ${LOCALBASE}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml:graphics/wayland-protocols
+LIB_DEPENDS= libavahi-client.so:net/avahi-app \
+ libavcodec.so:multimedia/ffmpeg \
+ libcurl.so:ftp/curl \
+ libepoll-shim.so:devel/libepoll-shim \
+ libevdev.so:devel/libevdev \
+ libexpat.so:textproc/expat2 \
+ libopus.so:audio/opus \
+ libudev.so:devel/libudev-devd \
+ libuuid.so:misc/e2fsprogs-libuuid \
+ libva.so:multimedia/libva \
+ libvdpau.so:multimedia/libvdpau \
+ libwayland-client.so:graphics/wayland
+
+USES= cmake gl localbase:ldflags perl5 pkgconfig sdl ssl tar:xz xorg
+USE_LDCONFIG= yes
+USE_GL= egl glesv2
+USE_PERL5= build
+USE_SDL= sdl2
+USE_XORG= x11
+
+NO_WRKSUBDIR= yes
+CFLAGS+= -DHAS_SOCKLEN_T=1 -I${LOCALBASE}/include/libepoll-shim
+LDFLAGS+= -lepoll-shim
+CMAKE_ARGS= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/etc/moonlight
+
+CONFLICTS_INSTALL= moonlight-embedded
+
+PLIST_FILES= bin/moonlight \
+ "@sample etc/moonlight/moonlight.conf.sample" \
+ share/man/man1/moonlight.1.gz \
+ share/moonlight/gamecontrollerdb.txt
+
+OPTIONS_DEFAULT= OSS
+CEC_DESC= Enable HDMI-CEC(TV controller) feature by using libcec.so
+OSS_DESC= Open Sound System support for embedded(not SDL) platform
+PULSE_DESC= PulseAudio sound server support for embedded(not SDL) platform
+OPTIONS_GROUP= OTHERS
+OPTIONS_GROUP_OTHERS= CEC
+OPTIONS_SINGLE= SOUND
+OPTIONS_SINGLE_SOUND= OSS PULSE
+CEC_CMAKE_BOOL= ENABLE_CEC
+CEC_LIB_DEPENDS= libcec.so:multimedia/libcec \
+ libp8-platform.so:devel/p8-platform
+OSS_CMAKE_ON= -DENABLE_PULSE:BOOL=false
+PULSE_CMAKE_BOOL= ENABLE_PULSE
+PULSE_LIB_DEPENDS= libpulse.so:audio/pulseaudio
+
+post-extract:
+ @${REINPLACE_CMD} -e 's@/usr/local@${PREFIX}@' \
+ ${WRKSRC}/docs/README.pod
+ @${REINPLACE_CMD} -e 's@/usr/local@${PREFIX}@' \
+ ${WRKSRC}/src/config.c
+
+post-install:
+ @${MV} ${STAGEDIR}${PREFIX}/etc/moonlight/moonlight.conf \
+ ${STAGEDIR}${PREFIX}/etc/moonlight/moonlight.conf.sample
+
+.include <bsd.port.mk>
diff --git a/games/moonlight-embedded-devel/distinfo b/games/moonlight-embedded-devel/distinfo
new file mode 100644
index 000000000000..2d907ae89973
--- /dev/null
+++ b/games/moonlight-embedded-devel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722750684
+SHA256 (moonlight-embedded-devel-2.7.2.tar.xz) = f6bcee1f99953b153f24b777f8284e9ba978133fe50bf2c59988b0b6eeaa4f26
+SIZE (moonlight-embedded-devel-2.7.2.tar.xz) = 434756
diff --git a/games/moonlight-embedded-devel/pkg-descr b/games/moonlight-embedded-devel/pkg-descr
new file mode 100644
index 000000000000..8a3e7e25f25a
--- /dev/null
+++ b/games/moonlight-embedded-devel/pkg-descr
@@ -0,0 +1,8 @@
+Moonlight allows you to stream your Desktop or games from your Windows
+PC(sunshine or NV shield) to your FreeBSD system.
+
+In contrast to moonlight-qt, this port can grab keyboard and mouse
+and has full worked vaapi decoder, which helps in case of crashes.
+
+Note: This is a fork of moonlight-embedded aimed for more features
+and fixes for FreeBSD on amd64, not only on embedded systems.