mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: webrtc-for-telegram-desktop: Update to 621f3da5.
* gnu/packages/patches/webrtc-for-telegram-desktop-fix-gcc12-cstdint.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. * gnu/packages/telegram.scm (webrtc-for-telegram-desktop): Update to 621f3da5. [patches]: Add webrtc-for-telegram-desktop-fix-gcc12-cstdint.patch. [snippet]: Unbundle libvpx and openh264. [native-inputs]: Remove perl. [inputs]: Replace pipewire with pipewire-0.3. Add abseil-cpp-cxxstd17, libdrm, libglvnd, libvpx, libxfixes, mesa, openh264. Remove alsa-lib, libx11 and pulseaudio. [arguments]<#:phases>: Adjust accordingly. [license]: Likewise. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
dc07a4ce6c
commit
adc3b7d31d
3 changed files with 51 additions and 23 deletions
|
@ -1975,6 +1975,7 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/warsow-qfusion-fix-bool-return-type.patch \
|
%D%/packages/patches/warsow-qfusion-fix-bool-return-type.patch \
|
||||||
%D%/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch \
|
%D%/packages/patches/webkitgtk-adjust-bubblewrap-paths.patch \
|
||||||
%D%/packages/patches/webrtc-audio-processing-big-endian.patch \
|
%D%/packages/patches/webrtc-audio-processing-big-endian.patch \
|
||||||
|
%D%/packages/patches/webrtc-for-telegram-desktop-fix-gcc12-cstdint.patch \
|
||||||
%D%/packages/patches/websocketpp-fix-for-cmake-3.15.patch \
|
%D%/packages/patches/websocketpp-fix-for-cmake-3.15.patch \
|
||||||
%D%/packages/patches/widelands-add-missing-map-include.patch \
|
%D%/packages/patches/widelands-add-missing-map-include.patch \
|
||||||
%D%/packages/patches/widelands-system-wide_minizip.patch \
|
%D%/packages/patches/widelands-system-wide_minizip.patch \
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
From 86d2bcd7afb8706663d29e30f65863de5a626142 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Xiretza <xiretza@xiretza.xyz>
|
||||||
|
Date: Sun, 15 May 2022 12:47:41 +0200
|
||||||
|
Subject: [PATCH] fix(h265_pps_parser): fix missing cstdint include
|
||||||
|
|
||||||
|
---
|
||||||
|
src/common_video/h265/h265_pps_parser.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/common_video/h265/h265_pps_parser.h b/src/common_video/h265/h265_pps_parser.h
|
||||||
|
index 28c95ea9..c180b1b9 100644
|
||||||
|
--- a/src/common_video/h265/h265_pps_parser.h
|
||||||
|
+++ b/src/common_video/h265/h265_pps_parser.h
|
||||||
|
@@ -12,6 +12,7 @@
|
||||||
|
#define COMMON_VIDEO_H265_PPS_PARSER_H_
|
||||||
|
|
||||||
|
#include "absl/types/optional.h"
|
||||||
|
+#include <cstdint>
|
||||||
|
|
||||||
|
namespace rtc {
|
||||||
|
class BitBuffer;
|
|
@ -30,6 +30,8 @@
|
||||||
#:use-module (gnu packages digest)
|
#:use-module (gnu packages digest)
|
||||||
#:use-module (gnu packages fcitx)
|
#:use-module (gnu packages fcitx)
|
||||||
#:use-module (gnu packages fcitx5)
|
#:use-module (gnu packages fcitx5)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages gl)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
#:use-module (gnu packages gnome)
|
#:use-module (gnu packages gnome)
|
||||||
#:use-module (gnu packages gnupg)
|
#:use-module (gnu packages gnupg)
|
||||||
|
@ -58,6 +60,7 @@
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
#:use-module (gnu packages video)
|
#:use-module (gnu packages video)
|
||||||
#:use-module (gnu packages web)
|
#:use-module (gnu packages web)
|
||||||
|
#:use-module (gnu packages xdisorg)
|
||||||
#:use-module (gnu packages xiph)
|
#:use-module (gnu packages xiph)
|
||||||
#:use-module (gnu packages xorg)
|
#:use-module (gnu packages xorg)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
@ -297,8 +300,8 @@
|
||||||
"0fvad87hyxli83xn19mgf8jjrrh6y6iaig14pckpbkg33vf4wqkj"))))
|
"0fvad87hyxli83xn19mgf8jjrrh6y6iaig14pckpbkg33vf4wqkj"))))
|
||||||
|
|
||||||
(define-public webrtc-for-telegram-desktop
|
(define-public webrtc-for-telegram-desktop
|
||||||
(let ((commit "91d836dc84a16584c6ac52b36c04c0de504d9c34")
|
(let ((commit "621f3da55331733bf0d1b223786b96b68c03dca1")
|
||||||
(revision "166"))
|
(revision "327"))
|
||||||
(hidden-package
|
(hidden-package
|
||||||
(package
|
(package
|
||||||
(name "webrtc-for-telegram-desktop")
|
(name "webrtc-for-telegram-desktop")
|
||||||
|
@ -314,57 +317,62 @@
|
||||||
(file-name
|
(file-name
|
||||||
(git-file-name name version))
|
(git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0plwdp6xgxi27hif5j7kpq425cidxyxbbga3z2f64dsninwy5p1x"))
|
(base32 "1ks1572k1jj7pmzwm79p2gdgi31dd4bs761bphnx32zyq4c6skxk"))
|
||||||
|
(patches
|
||||||
|
(search-patches
|
||||||
|
;; https://github.com/desktop-app/tg_owt/pull/101
|
||||||
|
"webrtc-for-telegram-desktop-fix-gcc12-cstdint.patch"))
|
||||||
(modules '((guix build utils)
|
(modules '((guix build utils)
|
||||||
(ice-9 ftw)
|
(ice-9 ftw)
|
||||||
(srfi srfi-1)))
|
(srfi srfi-1)))
|
||||||
(snippet
|
(snippet
|
||||||
#~(begin
|
#~(begin
|
||||||
(let ((keep
|
(let ((keep
|
||||||
'( ;; Custom forks which are incompatible with the ones in Guix.
|
'("abseil-cpp" "libsrtp" "rnnoise"
|
||||||
"abseil-cpp" "libsrtp" "openh264" "rnnoise"
|
|
||||||
;; Not available in Guix.
|
;; Not available in Guix.
|
||||||
"pffft" "usrsctp"
|
"pffft")))
|
||||||
;; Has cmake support files for libvpx input.
|
|
||||||
"libvpx")))
|
|
||||||
(with-directory-excursion "src/third_party"
|
(with-directory-excursion "src/third_party"
|
||||||
(for-each delete-file-recursively
|
(for-each delete-file-recursively
|
||||||
(lset-difference string=?
|
(lset-difference string=?
|
||||||
(scandir ".")
|
(scandir ".")
|
||||||
(cons* "." ".." keep)))))))))
|
(cons* "." ".." keep)))))
|
||||||
|
;; Unbundle openh264.
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("\\include\\(cmake\\/libopenh264\\.cmake\\)")""))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ; No target
|
#:tests? #f ; No target
|
||||||
#:configure-flags #~(list "-DCMAKE_C_FLAGS=-fPIC"
|
|
||||||
"-DCMAKE_CXX_FLAGS=-fPIC")
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'copy-inputs
|
(add-after 'unpack 'unpack-additional-sources
|
||||||
(lambda _
|
(lambda _
|
||||||
(let* ((third-party (string-append (getcwd) "/src/third_party"))
|
(let* ((third-party (string-append (getcwd) "/src/third_party"))
|
||||||
(libvpx-to (string-append third-party
|
(crc32c-to (string-append third-party "/crc32c/src"))
|
||||||
"/libvpx/source/libvpx"))
|
|
||||||
(libyuv-to (string-append third-party "/libyuv")))
|
(libyuv-to (string-append third-party "/libyuv")))
|
||||||
(copy-recursively #$libvpx-for-telegram-desktop libvpx-to)
|
(copy-recursively #$(package-source crc32c) crc32c-to)
|
||||||
(copy-recursively #$libyuv-for-telegram-desktop
|
(copy-recursively #$libyuv-for-telegram-desktop
|
||||||
libyuv-to)))))))
|
libyuv-to)))))))
|
||||||
(native-inputs (list perl pkg-config python-wrapper yasm))
|
(native-inputs (list pkg-config python-wrapper yasm))
|
||||||
(inputs
|
(inputs
|
||||||
(list alsa-lib
|
(list abseil-cpp-cxxstd17
|
||||||
ffmpeg
|
ffmpeg
|
||||||
libjpeg-turbo
|
libjpeg-turbo
|
||||||
glib
|
glib
|
||||||
|
libdrm
|
||||||
|
libglvnd
|
||||||
|
libvpx
|
||||||
libxcomposite
|
libxcomposite
|
||||||
libxdamage
|
libxdamage
|
||||||
libxrender
|
libxrender
|
||||||
libxrandr
|
libxrandr
|
||||||
|
libxfixes
|
||||||
|
mesa
|
||||||
|
openh264
|
||||||
openssl
|
openssl
|
||||||
opus
|
opus
|
||||||
pipewire
|
pipewire-0.3
|
||||||
protobuf
|
protobuf
|
||||||
pulseaudio
|
|
||||||
libx11
|
|
||||||
libxext
|
libxext
|
||||||
libxtst))
|
libxtst))
|
||||||
(synopsis "WebRTC support for Telegram Desktop")
|
(synopsis "WebRTC support for Telegram Desktop")
|
||||||
|
@ -377,13 +385,11 @@ Telegram project, for its use in telegram desktop client.")
|
||||||
license:asl2.0
|
license:asl2.0
|
||||||
;; LibYuv
|
;; LibYuv
|
||||||
(license:non-copyleft "file:///src/third_party/libyuv/LICENSE")
|
(license:non-copyleft "file:///src/third_party/libyuv/LICENSE")
|
||||||
;; OpenH264
|
|
||||||
license:bsd-2
|
|
||||||
;; PFFFT
|
;; PFFFT
|
||||||
(license:non-copyleft "file:///src/third_party/pffft/LICENSE")
|
(license:non-copyleft "file:///src/third_party/pffft/LICENSE")
|
||||||
;; RnNoise
|
;; RnNoise
|
||||||
license:gpl3
|
license:gpl3
|
||||||
;; LibSRTP, LibVPx, UsrSCTP and Others
|
;; LibSRTP, Crc32c and Others
|
||||||
license:bsd-3))))))
|
license:bsd-3))))))
|
||||||
|
|
||||||
(define-public rlottie-for-telegram-desktop
|
(define-public rlottie-for-telegram-desktop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue