diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-03-17 23:26:10 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-03-17 23:26:10 +0000 |
commit | 3945e0e6680ba383f28167419d9d4acf0f6f33eb (patch) | |
tree | 09a1fb25abe5c2dcf761873deef68876e942b517 /games/moonlight-embedded | |
parent | 089e985927287a174cc680e00a2476552bf3f960 (diff) | |
download | ports-3945e0e6680ba383f28167419d9d4acf0f6f33eb.tar.gz ports-3945e0e6680ba383f28167419d9d4acf0f6f33eb.zip |
games/moonlight-embedded: Update to 2.4.11
Notes
Notes:
svn path=/head/; revision=528613
Diffstat (limited to 'games/moonlight-embedded')
-rw-r--r-- | games/moonlight-embedded/Makefile | 3 | ||||
-rw-r--r-- | games/moonlight-embedded/distinfo | 6 | ||||
-rw-r--r-- | games/moonlight-embedded/files/patch-src_main.c | 98 |
3 files changed, 54 insertions, 53 deletions
diff --git a/games/moonlight-embedded/Makefile b/games/moonlight-embedded/Makefile index db4ff303d08b..d5dd6d9913c0 100644 --- a/games/moonlight-embedded/Makefile +++ b/games/moonlight-embedded/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= moonlight-embedded -DISTVERSION= 2.4.10 -PORTREVISION= 1 +DISTVERSION= 2.4.11 CATEGORIES= games MASTER_SITES= https://github.com/irtimmer/moonlight-embedded/releases/download/v${DISTVERSION}/ diff --git a/games/moonlight-embedded/distinfo b/games/moonlight-embedded/distinfo index 6ae77338ea0d..b6fb0e506d45 100644 --- a/games/moonlight-embedded/distinfo +++ b/games/moonlight-embedded/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1559014681 -SHA256 (moonlight-embedded-2.4.10.tar.xz) = 80efcaf432f6ac7f64d0fcda14728d37051d96d73dca82223ffb688cc248c4d2 -SIZE (moonlight-embedded-2.4.10.tar.xz) = 161696 +TIMESTAMP = 1584486809 +SHA256 (moonlight-embedded-2.4.11.tar.xz) = 4494a30925c42c28197e1b0ebabdac0215507f206696aa5b14cb6e85afa4e33c +SIZE (moonlight-embedded-2.4.11.tar.xz) = 164096 diff --git a/games/moonlight-embedded/files/patch-src_main.c b/games/moonlight-embedded/files/patch-src_main.c index d7343992a11f..6f2ede47e7fb 100644 --- a/games/moonlight-embedded/files/patch-src_main.c +++ b/games/moonlight-embedded/files/patch-src_main.c @@ -1,4 +1,4 @@ ---- src/main.c.orig 2019-04-29 17:09:45 UTC +--- src/main.c.orig 2020-03-09 19:33:27 UTC +++ src/main.c @@ -91,7 +91,6 @@ static void stream(PSERVER_DATA server, PCONFIGURATION } @@ -8,7 +8,7 @@ #ifdef HAVE_SDL gamepads += sdl_gamepads; #endif -@@ -121,19 +120,11 @@ static void stream(PSERVER_DATA server, PCONFIGURATION +@@ -121,21 +120,11 @@ static void stream(PSERVER_DATA server, PCONFIGURATION connection_debug = true; } @@ -19,9 +19,11 @@ LiStartConnection(&server->serverInfo, &config->stream, &connection_callbacks, platform_get_video(system), platform_get_audio(system, config->audio_device), NULL, drFlags, config->audio_device, 0); - if (IS_EMBEDDED(system)) { -- evdev_start(); +- if (!config->viewonly) +- evdev_start(); - loop_main(); -- evdev_stop(); +- if (!config->viewonly) +- evdev_stop(); - } #ifdef HAVE_SDL - else if (system == SDL) @@ -29,24 +31,24 @@ sdl_loop(); #endif -@@ -182,7 +173,6 @@ static void help() { +@@ -188,7 +177,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/rk/x11/x11_vdpau/sdl/fake (default auto)\n"); printf("\t-unsupported\t\tTry streaming if GFE version or options are unsupported\n"); printf("\t-quitappafter\t\tSend quit app request to remote after quitting session\n"); - #if defined(HAVE_SDL) || defined(HAVE_X11) -@@ -221,8 +211,6 @@ int main(int argc, char* argv[]) { + printf("\t-viewonly\t\tDisable all input processing (view-only mode)\n"); +@@ -228,8 +216,6 @@ int main(int argc, char* argv[]) { exit(-1); } - + - evdev_create(config.inputs[0], NULL, config.debug_level > 0); -- evdev_map(config.inputs[0]); - exit(0); +- evdev_map(config.inputs[0]); + exit(0); } -@@ -233,12 +221,8 @@ int main(int argc, char* argv[]) { +@@ -240,12 +226,8 @@ int main(int argc, char* argv[]) { exit(-1); } config.address[0] = 0; @@ -59,46 +61,46 @@ + fprintf(stderr, "Autodiscovery unsupported. Specify an IP address next time.\n"); + exit(-1); } - - char host_config_file[128]; -@@ -288,39 +272,8 @@ int main(int argc, char* argv[]) { - } - config.stream.supportsHevc = config.codec != CODEC_H264 && (config.codec == CODEC_HEVC || platform_supports_hevc(system)); -- if (IS_EMBEDDED(system)) { -- char* mapping_env = getenv("SDL_GAMECONTROLLERCONFIG"); -- if (config.mapping == NULL && mapping_env == NULL) { -- fprintf(stderr, "Please specify mapping file as default mapping could not be found.\n"); -- exit(-1); -- } + char host_config_file[128]; +@@ -304,39 +286,8 @@ int main(int argc, char* argv[]) { + if (config.debug_level > 0) + printf("View-only mode enabled, no input will be sent to the host computer\n"); + } else { +- if (IS_EMBEDDED(system)) { +- char* mapping_env = getenv("SDL_GAMECONTROLLERCONFIG"); +- if (config.mapping == NULL && mapping_env == NULL) { +- fprintf(stderr, "Please specify mapping file as default mapping could not be found.\n"); +- exit(-1); +- } - -- struct mapping* mappings = NULL; -- if (config.mapping != NULL) -- mappings = mapping_load(config.mapping, config.debug_level > 0); +- struct mapping* mappings = NULL; +- if (config.mapping != NULL) +- mappings = mapping_load(config.mapping, config.debug_level > 0); - -- if (mapping_env != NULL) { -- struct mapping* map = mapping_parse(mapping_env); -- map->next = mappings; -- mappings = map; -- } +- if (mapping_env != NULL) { +- struct mapping* map = mapping_parse(mapping_env); +- map->next = mappings; +- mappings = map; +- } - -- for (int i=0;i<config.inputsCount;i++) { -- if (config.debug_level > 0) -- printf("Add input %s...\n", config.inputs[i]); +- for (int i=0;i<config.inputsCount;i++) { +- if (config.debug_level > 0) +- printf("Add input %s...\n", config.inputs[i]); - -- evdev_create(config.inputs[i], mappings, config.debug_level > 0); -- } +- evdev_create(config.inputs[i], mappings, config.debug_level > 0); +- } - -- udev_init(!inputAdded, mappings, config.debug_level > 0); -- evdev_init(); -- rumble_handler = evdev_rumble; -- #ifdef HAVE_LIBCEC -- cec_init(); -- #endif /* HAVE_LIBCEC */ -- } - #ifdef HAVE_SDL -- else if (system == SDL) { -+ if (system == SDL) { - if (config.inputsCount > 0) { - fprintf(stderr, "You can't select input devices as SDL will automatically use all available controllers\n"); - exit(-1); +- udev_init(!inputAdded, mappings, config.debug_level > 0); +- evdev_init(); +- rumble_handler = evdev_rumble; +- #ifdef HAVE_LIBCEC +- cec_init(); +- #endif /* HAVE_LIBCEC */ +- } + #ifdef HAVE_SDL +- else if (system == SDL) { ++ if (system == SDL) { + if (config.inputsCount > 0) { + fprintf(stderr, "You can't select input devices as SDL will automatically use all available controllers\n"); + exit(-1); |