From 70ffdf2f473eca4ebc993571b3a815a0cd7cb051 Mon Sep 17 00:00:00 2001 From: Rmys Date: Wed, 29 Jun 2022 21:37:49 +0300 Subject: [PATCH] libtg_owt-20220508 --- multimedia/misc/libtg_owt/actions.py | 4 ++-- multimedia/misc/libtg_owt/files/101.patch | 21 +++++++++++++++++ multimedia/misc/libtg_owt/files/crc32c.patch | 24 ++++++++++++++++++++ multimedia/misc/libtg_owt/pspec.xml | 16 +++++++++++-- 4 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 multimedia/misc/libtg_owt/files/101.patch create mode 100644 multimedia/misc/libtg_owt/files/crc32c.patch diff --git a/multimedia/misc/libtg_owt/actions.py b/multimedia/misc/libtg_owt/actions.py index ca16d3b5cc..89eabe87dc 100644 --- a/multimedia/misc/libtg_owt/actions.py +++ b/multimedia/misc/libtg_owt/actions.py @@ -22,9 +22,9 @@ def setup(): #shelltools.move("libvpx/*", "src/third_party/libvpx/source/libvpx") shelltools.move("libyuv/*", "src/third_party/libyuv") - #shelltools.move("pipewire/*", "src/third_party/pipewire") + shelltools.system("rm -rf src/third_party/crc32c/src") + shelltools.move("crc32c-1.1.2/*", "src/third_party/crc32c") - #shelltools.export("CPPFLAGS", "-DNDEBUG") pisitools.cflags.add(" -ffat-lto-objects") pisitools.cxxflags.add(" -ffat-lto-objects -I/usr/include/libdrm") cmaketools.configure("-B build -G Ninja -DCMAKE_BUILD_TYPE=Release \ diff --git a/multimedia/misc/libtg_owt/files/101.patch b/multimedia/misc/libtg_owt/files/101.patch new file mode 100644 index 0000000000..9dee9cf8e3 --- /dev/null +++ b/multimedia/misc/libtg_owt/files/101.patch @@ -0,0 +1,21 @@ +From 86d2bcd7afb8706663d29e30f65863de5a626142 Mon Sep 17 00:00:00 2001 +From: Xiretza +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 + + namespace rtc { + class BitBuffer; diff --git a/multimedia/misc/libtg_owt/files/crc32c.patch b/multimedia/misc/libtg_owt/files/crc32c.patch new file mode 100644 index 0000000000..4983be1740 --- /dev/null +++ b/multimedia/misc/libtg_owt/files/crc32c.patch @@ -0,0 +1,24 @@ +diff -Nuar a/cmake/libcrc32c.cmake b/cmake/libcrc32c.cmake +--- a/cmake/libcrc32c.cmake 2022-06-29 18:11:40.492018000 +0300 ++++ b/cmake/libcrc32c.cmake 2022-06-29 18:46:54.004865939 +0300 +@@ -2,7 +2,7 @@ + init_target(libcrc32c) + add_library(tg_owt::libcrc32c ALIAS libcrc32c) + +-set(libcrc32c_loc ${third_party_loc}/crc32c/src) ++set(libcrc32c_loc ${third_party_loc}/crc32c) + + configure_file( + ${libcrc32c_loc}/src/crc32c_config.h.in +diff -Nuar a/src/net/dcsctp/packet/crc32c.cc b/src/net/dcsctp/packet/crc32c.cc +--- a/src/net/dcsctp/packet/crc32c.cc 2022-06-29 18:11:40.874018000 +0300 ++++ b/src/net/dcsctp/packet/crc32c.cc 2022-06-29 18:57:39.967819329 +0300 +@@ -11,7 +11,7 @@ + + #include + +-#include "third_party/crc32c/src/include/crc32c/crc32c.h" ++#include "third_party/crc32c/include/crc32c/crc32c.h" + + namespace dcsctp { + diff --git a/multimedia/misc/libtg_owt/pspec.xml b/multimedia/misc/libtg_owt/pspec.xml index ac73bd3dd0..46c06d8bfd 100644 --- a/multimedia/misc/libtg_owt/pspec.xml +++ b/multimedia/misc/libtg_owt/pspec.xml @@ -12,10 +12,10 @@ library WebRTC library - static linked WebRTC library - static linked - https://github.com/desktop-app/tg_owt/archive/63a934db1ed212ebf8aaaa20f0010dd7b0d7b396.tar.gz + https://github.com/desktop-app/tg_owt/archive/10d5f4bf77333ef6b43516f90d2ce13273255f41.tar.gz - + https://github.com/google/crc32c/archive/refs/tags/1.1.2.tar.gz git ninja @@ -42,7 +42,12 @@ python3-setuptools libXdamage-devel abseil-cpp-devel + egl-wayland-devel + + crc32c.patch + 101.patch + @@ -90,6 +95,13 @@ + + 2022-06-23 + 20220508 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2022-04-17 20220414