From ecd67d733010550505ceed4bd61d2e60f3144dac Mon Sep 17 00:00:00 2001 From: John Date: Sun, 26 Nov 2023 17:37:05 +0100 Subject: [PATCH 1/2] New package: AMF-1.4.30 --- srcpkgs/AMF/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/AMF/template diff --git a/srcpkgs/AMF/template b/srcpkgs/AMF/template new file mode 100644 index 0000000000000..2aa0c31bb6045 --- /dev/null +++ b/srcpkgs/AMF/template @@ -0,0 +1,16 @@ +# Template file for 'AMF' +pkgname=AMF +version=1.4.30 +revision=1 +short_desc="Advanced Media Framework SDK" +maintainer="John " +license="MIT" +homepage="https://github.com/GPUOpen-LibrariesAndSDKs/AMF/" +distfiles="https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v1.4.30.tar.gz" +checksum=4a9d43c730a76df6636932cee007917409d5b3607b61cecdf6dfab410f7b5f1d + +do_install() { + vmkdir usr/include + vcopy amf/public/include /usr/include/AMF + vlicense LICENSE.txt +} From afec1ad65223c4c493760d6745f2c790796b77c8 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 26 Nov 2023 17:38:35 +0100 Subject: [PATCH 2/2] New package: sunshine-0.21.0 --- srcpkgs/sunshine/patches/system-ffmpeg.patch | 29 +++++++ srcpkgs/sunshine/template | 84 ++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 srcpkgs/sunshine/patches/system-ffmpeg.patch create mode 100644 srcpkgs/sunshine/template diff --git a/srcpkgs/sunshine/patches/system-ffmpeg.patch b/srcpkgs/sunshine/patches/system-ffmpeg.patch new file mode 100644 index 0000000000000..b2e6d84cf552b --- /dev/null +++ b/srcpkgs/sunshine/patches/system-ffmpeg.patch @@ -0,0 +1,29 @@ +--- a/cmake/dependencies/common.cmake 2023-11-26 17:17:31.826060231 +0100 ++++ - 2023-11-26 17:17:36.655892216 +0100 +@@ -17,6 +17,14 @@ + add_subdirectory(third-party/miniupnp/miniupnpc) + include_directories(SYSTEM third-party/miniupnp/miniupnpc/include) + ++find_package(PkgConfig REQUIRED) ++if(SYSTEM_FFMPEG) ++ pkg_check_modules(FFMPEG REQUIRED ++ libavcodec ++ libswscale ++ libavutil ++ ) ++else() + # ffmpeg pre-compiled binaries + if(WIN32) + if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64") +@@ -65,10 +73,9 @@ + ${FFMPEG_PREPARED_BINARIES}/lib/libx265.a + ${HDR10_PLUS_LIBRARY} + ${FFMPEG_PLATFORM_LIBRARIES}) +- ++endif() + # common dependencies + find_package(OpenSSL REQUIRED) +-find_package(PkgConfig REQUIRED) + find_package(Threads REQUIRED) + pkg_check_modules(CURL REQUIRED libcurl) + diff --git a/srcpkgs/sunshine/template b/srcpkgs/sunshine/template new file mode 100644 index 0000000000000..fdffcc897f7c6 --- /dev/null +++ b/srcpkgs/sunshine/template @@ -0,0 +1,84 @@ +# Template file for 'sunshine' +pkgname=sunshine +version=0.21.0 +revision=1 +_moonlight_common_c_commit=f78f2135fa49e19855c2028b6865657d42d511f1 +_Simple_Web_Server_commit=2f29926dbbcd8a0425064d98c24f37ac50bd0b5b +_ViGEmClient_commit=b66d02d57e32cc8595369c53418b843e958649b4 +_miniupnp_commit=e439318cf782e30066d430f27a1365e013a5ab94 +_nv_codec_headers_commit=9402b5a7693e9841f8a4f4488cd2df21ac55c685 +_TPCircularBuffer_commit=8833b3a73fab6530cc51e2063a85cced01714cfb +_nanors_commit=395e5ada44dd8d5974eaf6bb6b17f23406e3ca72 +_tray_commit=2664388b0ed88234674a37f8cd569747522247b4 +_nvapi_open_source_sdk_commit=c0f5f7b64d2ef13b1155f078a2eec156611f2415 +_wayland_protocols_commit=681c33c8547d6aefe24455ba2bffe1c5ae11fee5 +_wlr_protocols_commit=4264185db3b7e961e7f157e1cc4fd0ab75137568 +_enet_commit=bbfe93c248ce198246328d52bda5b4e6dd4cc95e +build_style=cmake +configure_args="-DSYSTEM_FFMPEG=ON" +hostmakedepends="pkg-config" +makedepends="boost-devel openssl-devel libcurl-devel libdrm-devel + libcap-devel libayatana-appindicator-devel libnotify-devel + ffmpeg-devel AMF pulseaudio-devel libva-devel opus-devel + libevdev-devel" +short_desc="Self-hosted game stream host for Moonlight" +maintainer="John " +license="GPL-3.0-or-later" +homepage="https://github.com/LizardByte/Sunshine" +#changelog="" +distfiles="https://github.com/LizardByte/Sunshine/archive/refs/tags/v${version}.tar.gz + https://github.com/moonlight-stream/moonlight-common-c/archive/${_moonlight_common_c_commit}.tar.gz + https://gitlab.com/eidheim/Simple-Web-Server/-/archive/${_Simple_Web_Server_commit}/Simple_Web_Server-${_Simple_Web_Server_commit}.tar.gz + https://github.com/nefarius/ViGEmClient/archive/${_ViGEmClient_commit}.tar.gz + https://github.com/miniupnp/miniupnp/archive/${_miniupnp_commit}.tar.gz + https://github.com/FFmpeg/nv-codec-headers/archive/${_nv_codec_headers_commit}.tar.gz + https://github.com/michaeltyson/TPCircularBuffer/archive/${_TPCircularBuffer_commit}.tar.gz + https://github.com/sleepybishop/nanors/archive/${_nanors_commit}.tar.gz + https://github.com/LizardByte/tray/archive/${_tray_commit}.tar.gz + https://github.com/LizardByte/nvapi-open-source-sdk/archive/${_nvapi_open_source_sdk_commit}.tar.gz + https://gitlab.freedesktop.org/wayland/wayland-protocols/-/archive/${_wayland_protocols_commit}/wayland_protocols-${_wayland_protocols_commit}.tar.gz + https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/archive/${_wlr_protocols_commit}/wlr_protocols-${_wlr_protocols_commit}.tar.gz + https://github.com/cgutman/enet/archive/${_enet_commit}.tar.gz" +checksum="75ac232d573074ad20a18c28e0adedc06ecfd2df12729c80b3c8c755d66a958f + d0e56eb2f30962daa41c76c72a567614e8d49cb78f76419dd2f3e6ba565504ed + 9e37dd60f79f72d4cacaa75aa0b46918f87d3877aa4a8b104f7940b2055d6629 + c2bc824cc96ed18cf0620b734ae552474f107e7e680485e5c0cb63e675d9f72a + 31839b9a4d7396f356c947a24307ff6ee94e95c6735e98baee3b7ca798758bad + afb70ad74ed95a4d86ffa4cebe7bcb396131f1bb627924bee4a0dfd8c3cb8819 + e7bf9d090be90e419860019e6ae125bb07b6aa4d67485e70c93e3e11d41938ee + ee43241a9357805e45b25db29b92fdd85461037e79f3f96774af3b219af42000 + 2a4e6488493921eb396e25397cf48a339c4c70e910c089d06e3bb87bdcf96a3d + d97efcff3bb86472dd4f602044903a3527a2c850eeebfb9b039ab50d2a237223 + fd2b96c75dc5ad56fac81d08892c8849ab8b9b62a18fa9ad8310ac5817777dd3 + 787675c9873399a1b90fb38eed2e161468c8997213d94b188f69552270042695 + 2eff0209d7e5d33a37e87b59ac44a8fbe7b91c4562ddeabedec2ad459ac6f91d" + +skip_extraction=" + ${_moonlight_common_c_commit}.tar.gz + Simple_Web_Server-${_Simple_Web_Server_commit}.tar.gz + ${_ViGEmClient_commit}.tar.gz + ${_miniupnp_commit}.tar.gz + ${_nv_codec_headers_commit}.tar.gz + ${_TPCircularBuffer_commit}.tar.gz + ${_nanors_commit}.tar.gz + ${_tray_commit}.tar.gz + ${_nvapi_open_source_sdk_commit}.tar.gz + wayland_protocols-${_wayland_protocols_commit}.tar.gz + wlr_protocols-${_wlr_protocols_commit}.tar.gz + ${_enet_commit}.tar.gz + " + +post_extract() { + vsrcextract -C third-party/moonlight-common-c ${_moonlight_common_c_commit}.tar.gz + vsrcextract -C third-party/moonlight-common-c/enet ${_enet_commit}.tar.gz + vsrcextract -C third-party/Simple-Web-Server Simple_Web_Server-${_Simple_Web_Server_commit}.tar.gz + vsrcextract -C third-party/ViGEmClient ${_ViGEmClient_commit}.tar.gz + vsrcextract -C third-party/miniupnp ${_miniupnp_commit}.tar.gz + vsrcextract -C third-party/nv-codec-headers ${_nv_codec_headers_commit}.tar.gz + vsrcextract -C third-party/TPCircularBuffer ${_TPCircularBuffer_commit}.tar.gz + vsrcextract -C third-party/nanors ${_nanors_commit}.tar.gz + vsrcextract -C third-party/tray ${_tray_commit}.tar.gz + vsrcextract -C third-party/nvapi-open-source-sdk ${_nvapi_open_source_sdk_commit}.tar.gz + vsrcextract -C third-party/wayland-protocols wayland_protocols-${_wayland_protocols_commit}.tar.gz + vsrcextract -C third-party/wlr-protocols wlr_protocols-${_wlr_protocols_commit}.tar.gz +}