summaryrefslogtreecommitdiff
path: root/media-libs/libtgvoip
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-23 06:54:34 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-23 06:54:34 +0000
commit9a1d1c6b10a4640cea10e7040ed173cf593f4cab (patch)
tree10b7aaa9608311a4b8a7561c6a8da3003ebb061d /media-libs/libtgvoip
parentdefbebad0d311b0ce0694b17989a9f26cf000250 (diff)
gentoo auto-resync : 23:01:2023 - 06:54:34
Diffstat (limited to 'media-libs/libtgvoip')
-rw-r--r--media-libs/libtgvoip/Manifest4
-rw-r--r--media-libs/libtgvoip/libtgvoip-2.4.4_p20221208.ebuild63
-rw-r--r--media-libs/libtgvoip/metadata.xml3
3 files changed, 69 insertions, 1 deletions
diff --git a/media-libs/libtgvoip/Manifest b/media-libs/libtgvoip/Manifest
index f0eb05907849..22b6bb7c7d35 100644
--- a/media-libs/libtgvoip/Manifest
+++ b/media-libs/libtgvoip/Manifest
@@ -1,5 +1,7 @@
DIST libtgvoip-2.4.4_p20220117.tar.gz 1098045 BLAKE2B 752b3b26f511316b8261d9ebb833e2b74df91377daca255fbbeefb18b3ab3811b97eaee1d9965e95ed9d215467e6ff5dc857369d381d470570cb87c3bfec33af SHA512 b9d8e354e9b8f9226d5e06397fdf3c91f71fee890db7d180dffae2e3fb6f74bca1c31b7f87049257c3edf44c2171780ed5781877cf8f2d40b2d56c1f5385ef77
DIST libtgvoip-2.4.4_p20220503.tar.gz 1098061 BLAKE2B 5389a3783fa5179d10a18ef0282ab65d1526c829852095718384c2ba476ebfb1ee1f997f71b47424ef60a826055bc63d0d2dde7980de98c978860d72717ffefb SHA512 68f1e5b46df3b974d39333949e586ed00243044ff4bcac31937cba7eced6266fdacfd6ff3c6453f7dfa64ec82dd3aeafa251411dc85de0aae26b2cd0d8a79013
+DIST libtgvoip-2.4.4_p20221208.tar.gz 1098020 BLAKE2B 6f1eae38e4396ca3b88ab4337176a6076d5f9008b2a865cd286265a9b73d83d44c2cc6828b65dcb580a897a19badeab502395e2128a15c276ae796ac1ab0da68 SHA512 62243629890b1c13f1dbbffae4f82964a0fe23d2071852730674ccbef31126c6e205cfa526f07ba1549ef8eae31e371fb4335ce5f95fd649560bee2b3b530e64
EBUILD libtgvoip-2.4.4_p20220117.ebuild 1586 BLAKE2B 8ee4658a921472e3c5aaa2cccb6059620041f71ee4c8fb24fdcf3759b4f5bbb99c481c888f71300cc82a49ec4037fec96065f89c36145b57b293a9818cba3e54 SHA512 0159bdc29c80a8c2ac03783bded57b68908d814a1113431db85b62042b1c00b433f9bce4359201ec43a79205e27463c84b33a33254cf3aa3b25a9343fe1039e2
EBUILD libtgvoip-2.4.4_p20220503.ebuild 1586 BLAKE2B 8219e767ea77c7a3777012ddf59d25a536ea7bec408db6cdb81d668e3ccc0084a418c7b7285ebf5cffc6b8be47907a62dd9f3bd8d010f2cd58fe0b154c385962 SHA512 e3f2d19cd142b64a3ba4fbc4cf99f24c150c2b750f05a47a03fa58bbd8faf20424817ca001ae30110036982c0f2c4809d250ce871cd3207365f8b5261dcf001e
-MISC metadata.xml 543 BLAKE2B 56f3e74859e09ff7ecaa4f068e1872257213a7239cd946c920c0b2e7e12cfc0bdb314ca1fb0a75b489abd5ae5c4e5b4218ced1b3ee78e60a4e82558100d68e1f SHA512 83e39833446eb97c76280a81e428bdd64b5c46a052e1b87bdc19a5db31478f1004e3ae6f323c7983992541bf9d15f155037523990964ccae4ad8653396f7534b
+EBUILD libtgvoip-2.4.4_p20221208.ebuild 1587 BLAKE2B 2c82a5c99a19e2e6dfdc31e2b98cdba038223802f607253923a597a3a3647383bd1ba2717f3477a9d9ebad9507a68a3a3b325f8567b2aee9f902daeb9a5ef499 SHA512 e5c3723a0e91f3c232fbf697df73bc6ec0e0cad40b78eb25c92277a07512a7d14a972ae733ad7fc0e60c15a29a1c07655b0777f00d29a862c64d983dbb34195c
+MISC metadata.xml 633 BLAKE2B 53413d3bf4124e2d415bd0851deac01649bdf5f44069805a8e8904b93a0ad731df46169813955670aafedb6630a6fe7102b5954339df59435aafa6a6a35bd954 SHA512 96a69dcfd9e0b615fefb8ea9a8715ad2a2d4c62ce59e725434de3fe42889bb93c2b4ac1fbd2d20a23be62c9a59ca70e93f883247a83f344ff9abde2970cd4e50
diff --git a/media-libs/libtgvoip/libtgvoip-2.4.4_p20221208.ebuild b/media-libs/libtgvoip/libtgvoip-2.4.4_p20221208.ebuild
new file mode 100644
index 000000000000..4bd604dec9f6
--- /dev/null
+++ b/media-libs/libtgvoip/libtgvoip-2.4.4_p20221208.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic autotools
+
+DESCRIPTION="VoIP library for Telegram clients"
+HOMEPAGE="https://github.com/telegramdesktop/libtgvoip"
+
+LIBTGVOIP_COMMIT="0ffe2e51bfe14b533b860002f1c2e87e5f8c00c0"
+SRC_URI="https://github.com/telegramdesktop/libtgvoip/archive/${LIBTGVOIP_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${LIBTGVOIP_COMMIT}"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+IUSE="+dsp +alsa pulseaudio"
+
+DEPEND="
+ dev-libs/openssl:=
+ media-libs/opus
+ alsa? ( media-libs/alsa-lib )
+ dsp? ( media-libs/tg_owt:= )
+ pulseaudio? ( media-sound/pulseaudio )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+REQUIRED_USE="
+ || ( alsa pulseaudio )
+"
+
+src_prepare() {
+ # Will be controlled by us
+ sed -i -e '/^CFLAGS += -DTGVOIP_NO_DSP/d' Makefile.am || die
+ # https://bugs.gentoo.org/717210
+ echo 'libtgvoip_la_LIBTOOLFLAGS = --tag=CXX' >> Makefile.am || die
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Not using the CMake build despite being the preferred one, because
+ # it's lacking relevant configure options.
+ local myconf=(
+ --disable-dsp # WebRTC is linked from tg_owt
+ $(use_with alsa)
+ $(use_with pulseaudio pulse)
+ )
+ if use dsp; then
+ append-cppflags "-I${ESYSROOT}/usr/include/tg_owt"
+ append-cppflags "-I${ESYSROOT}/usr/include/tg_owt/third_party/abseil-cpp"
+ append-libs '-ltg_owt'
+ else
+ append-cppflags '-DTGVOIP_NO_DSP'
+ fi
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/media-libs/libtgvoip/metadata.xml b/media-libs/libtgvoip/metadata.xml
index 12ff7670bc20..0837c875ba4e 100644
--- a/media-libs/libtgvoip/metadata.xml
+++ b/media-libs/libtgvoip/metadata.xml
@@ -12,4 +12,7 @@
<use>
<flag name="dsp">Enable signal processing (echo cancellation, noise suppression, and automatic gain control)</flag>
</use>
+ <upstream>
+ <remote-id type="github">telegramdesktop/libtgvoip</remote-id>
+ </upstream>
</pkgmetadata>