1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

games/moonlight-embedded: Update to 2.4.7

- Use static release tarballs that upstream has provided since 2.4.6
- Rebase patches

Changes:	https://github.com/irtimmer/moonlight-embedded/releases/tag/v2.4.7
This commit is contained in:
Tobias Kortkamp 2018-08-12 12:20:35 +00:00
parent a9cd1c60bc
commit 271e76a4a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476985
6 changed files with 25 additions and 52 deletions

View File

@ -1,10 +1,9 @@
# $FreeBSD$
PORTNAME= moonlight-embedded
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.6
PORTREVISION= 1
DISTVERSION= 2.4.7
CATEGORIES= games
MASTER_SITES= https://github.com/irtimmer/moonlight-embedded/releases/download/v${DISTVERSION}/
MAINTAINER= tobik@FreeBSD.org
COMMENT= Gamestream client
@ -19,10 +18,7 @@ LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libopus.so:audio/opus \
libuuid.so:misc/e2fsprogs-libuuid
USES= cmake localbase:ldflags perl5 pkgconfig ssl
USE_GITHUB= yes
GH_ACCOUNT= irtimmer
GH_TUPLE= irtimmer:moonlight-common-c:186cef0e3a4c104dc224f0ca413345571d79b48c:common/third_party/moonlight-common-c
USES= cmake localbase:ldflags perl5 pkgconfig ssl tar:xz
USE_LDCONFIG= yes
USE_PERL5= build
USE_SDL= sdl2

View File

@ -1,5 +1,3 @@
TIMESTAMP = 1518876219
SHA256 (irtimmer-moonlight-embedded-v2.4.6_GH0.tar.gz) = 5c3c6fbedcd9d9b57d276add82e88be12b3ea974dc191ed5ae29908a62acb374
SIZE (irtimmer-moonlight-embedded-v2.4.6_GH0.tar.gz) = 137855
SHA256 (irtimmer-moonlight-common-c-186cef0e3a4c104dc224f0ca413345571d79b48c_GH0.tar.gz) = 68ad7fd341b6fcd218bbe3c502f56bee9e21f7e9d5587e538bb41af4f3ae71af
SIZE (irtimmer-moonlight-common-c-186cef0e3a4c104dc224f0ca413345571d79b48c_GH0.tar.gz) = 66038
TIMESTAMP = 1534076138
SHA256 (moonlight-embedded-2.4.7.tar.xz) = f78e7de28e190ea21ad567f2c580be384c53fa40f22d2ab8db16487c3e99fc56
SIZE (moonlight-embedded-2.4.7.tar.xz) = 152496

View File

@ -1,29 +0,0 @@
src/video/ffmpeg.c:99:27: error: use of undeclared identifier 'CODEC_FLAG_LOW_DELAY'
decoder_ctx->flags |= CODEC_FLAG_LOW_DELAY;
^
src/video/sdl.c:43:48: error: use of undeclared identifier 'FF_INPUT_BUFFER_PADDING_SIZE'
ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
^
--- src/video/ffmpeg.c.orig 2018-01-14 14:09:59 UTC
+++ src/video/ffmpeg.c
@@ -96,7 +96,7 @@ int ffmpeg_init(int videoFormat, int width, int height
if (perf_lvl & LOW_LATENCY_DECODE)
// Use low delay single threaded encoding
- decoder_ctx->flags |= CODEC_FLAG_LOW_DELAY;
+ decoder_ctx->flags |= AV_CODEC_FLAG_LOW_DELAY;
if (perf_lvl & SLICE_THREADING)
decoder_ctx->thread_type = FF_THREAD_SLICE;
--- src/video/sdl.c.orig 2018-01-14 14:09:59 UTC
+++ src/video/sdl.c
@@ -40,7 +40,7 @@ static int sdl_setup(int videoFormat, int width, int h
return -1;
}
- ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
+ ffmpeg_buffer = malloc(DECODER_BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE);
if (ffmpeg_buffer == NULL) {
fprintf(stderr, "Not enough memory\n");
ffmpeg_destroy();

View File

@ -1,6 +1,6 @@
--- libgamestream/client.c.orig 2017-10-24 18:52:11 UTC
--- libgamestream/client.c.orig 2018-08-11 15:43:13 UTC
+++ libgamestream/client.c
@@ -503,7 +503,11 @@ int gs_pair(PSERVER_DATA server, char* pin) {
@@ -505,7 +505,11 @@ int gs_pair(PSERVER_DATA server, char* pin) {
RAND_bytes(client_secret_data, 16);
const ASN1_BIT_STRING *asnSignature;

View File

@ -1,6 +1,14 @@
--- src/main.c.orig 2017-10-24 18:52:11 UTC
--- src/main.c.orig 2018-08-11 15:43:13 UTC
+++ src/main.c
@@ -115,13 +115,8 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
@@ -91,7 +91,6 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
}
int gamepads = 0;
- gamepads += evdev_gamepads;
#ifdef HAVE_SDL
gamepads += sdl_gamepads;
#endif
@@ -124,13 +123,8 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
platform_start(system);
LiStartConnection(&server->serverInfo, &config->stream, &connection_callbacks, platform_get_video(system), platform_get_audio(system, config->audio_device), NULL, drFlags, config->audio_device, 0);
@ -15,15 +23,15 @@
sdl_loop();
#endif
@@ -163,7 +158,6 @@ static void help() {
@@ -172,7 +166,6 @@ static void help() {
printf("\t-surround\t\tStream 5.1 surround sound (requires GFE 2.7)\n");
printf("\t-keydir <directory>\tLoad encryption keys from directory\n");
printf("\t-mapping <file>\t\tUse <file> as gamepad mappings configuration file\n");
- printf("\t-platform <system>\tSpecify system used for audio, video and input: pi/imx/aml/x11/x11_vdpau/sdl/fake (default auto)\n");
- printf("\t-platform <system>\tSpecify system used for audio, video and input: pi/imx/aml/rk/x11/x11_vdpau/sdl/fake (default auto)\n");
printf("\t-unsupported\t\tTry streaming if GFE version or options are unsupported\n");
#if defined(HAVE_SDL) || defined(HAVE_X11)
printf("\n WM options (SDL and X11 only)\n\n");
@@ -201,8 +195,6 @@ int main(int argc, char* argv[]) {
@@ -210,8 +203,6 @@ int main(int argc, char* argv[]) {
exit(-1);
}
@ -32,7 +40,7 @@
exit(0);
}
@@ -213,12 +205,8 @@ int main(int argc, char* argv[]) {
@@ -222,12 +213,8 @@ int main(int argc, char* argv[]) {
exit(-1);
}
config.address[0] = 0;
@ -47,7 +55,7 @@
}
char host_config_file[128];
@@ -268,38 +256,8 @@ int main(int argc, char* argv[]) {
@@ -277,38 +264,8 @@ int main(int argc, char* argv[]) {
}
config.stream.supportsHevc = config.codec != CODEC_H264 && (config.codec == CODEC_HEVC || platform_supports_hevc(system));

View File

@ -1,6 +1,6 @@
--- src/platform.c.orig 2017-07-02 11:38:48 UTC
--- src/platform.c.orig 2018-08-11 15:43:13 UTC
+++ src/platform.c
@@ -163,14 +163,6 @@ AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum plat
@@ -174,14 +174,6 @@ AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum plat
if (audio_device == NULL || strcmp(audio_device, "local") == 0 || strcmp(audio_device, "hdmi") == 0)
return (PAUDIO_RENDERER_CALLBACKS) dlsym(RTLD_DEFAULT, "audio_callbacks_omx");
#endif