@@ -9,7 +9,7 @@ DESCRIPTION="WebRTC (video) library (fork) for Telegram clients"
99HOMEPAGE=" https://github.com/desktop-app/tg_owt"
1010
1111if [[ ! " ${PV} " = 9999* ]]; then
12- TG_OWT_COMMIT=" c4192e8e2e10ccb72704daa79fa108becfa57b01 "
12+ TG_OWT_COMMIT=" 232ec410502e773024e8d83cfae83a52203306c0 "
1313 LIBYUV_COMMIT=" 04821d1e7d60845525e8db55c7bcd41ef5be9406"
1414 LIBSRTP_COMMIT=" a566a9cfcd619e8327784aa7cff4a1276dc1e895"
1515 # ABSL_COMMIT="d7aaad83b488fd62bd51c81ecf16cd938532cc0a"
@@ -45,12 +45,12 @@ IUSE="pipewire screencast +X"
4545REQUIRED_USE=" screencast? ( pipewire )"
4646
4747# Bundled libs:
48- # - libyuv (no stable versioning, www-client/chromium and media-libs/libvpx bundle it
48+ # - libyuv (no stable versioning, www-client/chromium and media-libs/libvpx bundle it)
4949# - libsrtp (project uses private APIs)
5050# - pffft (no stable versioning, patched)
5151# - rnnoise (private APIs)
5252RDEPEND="
53- >=dev-cpp/abseil-cpp-20240116.2 :=
53+ >=dev-cpp/abseil-cpp-20240722.0 :=
5454 dev-libs/openssl:=
5555 media-libs/libjpeg-turbo:=
5656 >=media-libs/libvpx-1.10.0:=
@@ -62,11 +62,6 @@ RDEPEND="
6262 media-video/pipewire:=
6363 )
6464 dev-libs/crc32c
65- screencast? (
66- media-libs/libglvnd[X=]
67- media-libs/mesa
68- x11-libs/libdrm
69- )
7065 X? (
7166 x11-libs/libX11
7267 x11-libs/libXcomposite
@@ -80,7 +75,14 @@ RDEPEND="
8075"
8176# media-libs/libyuv
8277# net-libs/libsrtp
83- DEPEND=" ${RDEPEND} "
78+ DEPEND="
79+ ${RDEPEND}
80+ screencast? (
81+ media-libs/libglvnd[X=]
82+ media-libs/mesa
83+ x11-libs/libdrm
84+ )
85+ "
8486BDEPEND="
8587 virtual/pkgconfig
8688 X? ( x11-base/xorg-proto )
@@ -93,9 +95,10 @@ PATCHES=(
9395 " ${FILESDIR} /${PN} -0_pre20221215-allow-disabling-pulseaudio.patch"
9496 " ${FILESDIR} /${PN} -0_pre20221215-expose-set_allow_pipewire.patch"
9597 # "${FILESDIR}/fix-clang-emplace.patch"
96- " ${FILESDIR} /patch-cmake-absl-external.patch"
98+ # "${FILESDIR}/patch-cmake-absl-external.patch"
9799 # XXX: 👆comment for re-bundling absl
98- " ${FILESDIR} /patch-cmake-crc32c-external.patch"
100+ # "${FILESDIR}/patch-cmake-crc32c-external.patch"
101+ " ${FILESDIR} /${PN} -gcc16-build-fix.patch"
99102)
100103
101104src_unpack () {
@@ -156,23 +159,23 @@ src_prepare() {
156159 # "${S}"/src/modules/video_coding/codecs/av1/dav1d_decoder.cc \
157160 # "${S}"/src/api/video/i444_buffer.cc || die
158161
159- # FIXME: abseil-cpp related things (absl::string_view casts)
160- # tg_owt uses (when bundled) git-almost-HEAD (april's commit) link in submodule
161- # gentoo for now have only release january release.
162- # Upgrading to july release (placing it in overlay) doesn't help with build failure (without this) either
163- # Although, I guess it is related to this:
164- # https://github.com/gentoo/gentoo/pull/32281#issuecomment-1676404974
165- sed -r \
166- -e " /[ ]*(group_name = )(kDefaultProbingScreenshareBweSettings)/s@@\1(std::string)\2@" \
167- -i " ${S} /src/rtc_base/experiments/alr_experiment.cc" || die
168- sed -r \
169- -e " /[ \t]*transaction_id.insert/s@(magic_cookie)@(std::string)\1@" \
170- -i " ${S} /src/api/transport/stun.cc" || die
171- sed -r \
172- -e " /(candidate_stats->candidate_type = )(candidate.type_name)/s@@\1(std::string)\2@" \
173- -i " ${S} /src/pc/rtc_stats_collector.cc" || die
174- # append-cppflags -I"${S}/src/third_party/abseil-cpp"
175- # XXX: 👆for re-bundling absl
162+ # # FIXME: abseil-cpp related things (absl::string_view casts)
163+ # # tg_owt uses (when bundled) git-almost-HEAD (april's commit) link in submodule
164+ # # gentoo for now have only release january release.
165+ # # Upgrading to july release (placing it in overlay) doesn't help with build failure (without this) either
166+ # # Although, I guess it is related to this:
167+ # # https://github.com/gentoo/gentoo/pull/32281#issuecomment-1676404974
168+ # sed -r \
169+ # -e "/[ ]*(group_name = )(kDefaultProbingScreenshareBweSettings)/s@@\1(std::string)\2@" \
170+ # -i "${S}/src/rtc_base/experiments/alr_experiment.cc" || die
171+ # sed -r \
172+ # -e "/[ \t]*transaction_id.insert/s@(magic_cookie)@(std::string)\1@" \
173+ # -i "${S}/src/api/transport/stun.cc" || die
174+ # sed -r \
175+ # -e "/(candidate_stats->candidate_type = )(candidate.type_name)/s@@\1(std::string)\2@" \
176+ # -i "${S}/src/pc/rtc_stats_collector.cc" || die
177+ # # append-cppflags -I"${S}/src/third_party/abseil-cpp"
178+ # # XXX: 👆for re-bundling absl
176179
177180 cmake_src_prepare
178181}
@@ -217,8 +220,8 @@ src_install() {
217220 rtc_base/third_party/base64
218221 )
219222 for dir in " ${headers[@]} " ; do
220- pushd " ${S} /src/${dir} " > /dev/null || die
221- find -type f -name " *.h" -exec install -Dm644 ' {}' " ${ED} /usr/include/tg_owt/${dir} /{}" \; || die
223+ pushd " ${S} /src/${dir} " > /dev/null || die
224+ find -type f -name " *.h" -exec install -Dm644 ' {}' " ${ED} /usr/include/tg_owt/${dir} /{}" \; || die
222225 popd > /dev/null || die
223226 done
224227}
0 commit comments