diff options
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/Manifest.gz | bin | 68236 -> 68224 bytes | |||
-rw-r--r-- | media-libs/libtgvoip/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libtgvoip/libtgvoip-2.4.4_p20221208.ebuild | 63 | ||||
-rw-r--r-- | media-libs/libtgvoip/metadata.xml | 3 | ||||
-rw-r--r-- | media-libs/opus/Manifest | 2 | ||||
-rw-r--r-- | media-libs/opus/metadata.xml | 3 | ||||
-rw-r--r-- | media-libs/opusfile/Manifest | 2 | ||||
-rw-r--r-- | media-libs/opusfile/metadata.xml | 3 | ||||
-rw-r--r-- | media-libs/speex/Manifest | 2 | ||||
-rw-r--r-- | media-libs/speex/metadata.xml | 1 | ||||
-rw-r--r-- | media-libs/speexdsp/Manifest | 2 | ||||
-rw-r--r-- | media-libs/speexdsp/metadata.xml | 1 | ||||
-rw-r--r-- | media-libs/tg_owt/Manifest | 5 | ||||
-rw-r--r-- | media-libs/tg_owt/metadata.xml | 3 | ||||
-rw-r--r-- | media-libs/tg_owt/tg_owt-0_pre20230105.ebuild | 122 |
15 files changed, 210 insertions, 6 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz Binary files differindex 08aa8fe74a8a..47d6d2816e01 100644 --- a/media-libs/Manifest.gz +++ b/media-libs/Manifest.gz 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> diff --git a/media-libs/opus/Manifest b/media-libs/opus/Manifest index b409f06a86f4..b9c33904861e 100644 --- a/media-libs/opus/Manifest +++ b/media-libs/opus/Manifest @@ -2,4 +2,4 @@ AUX opus-1.3.1-libdir-macro.patch 359 BLAKE2B 901a1f09417bb962b3268a1d9a85cfc356 AUX opus-1.3.1-macro-wstrict-prototypes.patch 469 BLAKE2B a68a9506ee1d3c08f0106f9270e6d4132f15b23434f844a9b33b8326590687d6ecaaa91b21cbc921b03f0aa5d2bfcd004a276099c19fe25ded6dc25b28093f50 SHA512 9467be13f0c0c9fcc1026830d206738871a97b2005ad540c5286112c0921051f995e475ebf4e1701b2fce7dfb2c8dfedd2a7bb1d54dfb7b623433ae98b71a9ca DIST opus-1.3.1.tar.gz 1040054 BLAKE2B e0aab38518938157a6ef27307f52d9d3f9c12a2fef4c7e5b4168c2f6fc04d79e333ebe477059b3e6a0518fcf6aa089b5eb1c8de68d83474e237c0f73e5a221cb SHA512 6cd5e4d8a0551ed5fb59488c07a5cc18a241d1fde5f9eb9f16cd4e77abcdb4134dd51ad1d737be1e6039bfa56912510b8648152f2478a1f21c7c1d9ce32933cd EBUILD opus-1.3.1-r4.ebuild 1396 BLAKE2B 61734d61d0f4a2cc973821e3ebfcda2ed0d9ac96a4550512b71408472408eddbbbe5fd0027434a151388d06b14845270d102dbf72c1116b928b400e6bbc1d099 SHA512 31e110ab734cfbd63d364f3891421ff44188be244b7f5a29f3c941259bb945032b1a9617290b9b7eaec142118cf77d34443258eaae05bec09afc441c2f630ed3 -MISC metadata.xml 464 BLAKE2B af27614c44aeb6d0d0eb053566be211c7997afe134138f7331276e406ad981e7e72303ae6ea9ad01d1a5772d6bce373d03f2996f4a126ce5414fd27626f90593 SHA512 e8d7151b3c61c6cdc6630f743237622bbb57128d1ae507b0ecee718a075f41133f68975ac805f2e886446508a73c158071ea0552a33c5dcd1ef434929f878c90 +MISC metadata.xml 538 BLAKE2B d65f695f3bf53cb827c9fbfc621cb58f3465e77f74f3bb3c436fc8741161798b6f7dc3381a07e21f7f1e5310104ed89179c64d9ab30f2102c76ef6ee73ad9ebc SHA512 0e84eba3a3711486a9569e7d38b0fe7cd11aa0d68c123f3304b6b698394dff4e48f4270624793cdc17a16a3ac8c9f921ae50bcbb30b920916b4bad9ae60c7117 diff --git a/media-libs/opus/metadata.xml b/media-libs/opus/metadata.xml index 73c305ccb455..ead8947401fe 100644 --- a/media-libs/opus/metadata.xml +++ b/media-libs/opus/metadata.xml @@ -12,4 +12,7 @@ <use> <flag name="custom-modes">Enable non-Opus modes, e.g. 44.1 kHz and 2^n frames</flag> </use> + <upstream> + <remote-id type="github">xiph/opus</remote-id> + </upstream> </pkgmetadata> diff --git a/media-libs/opusfile/Manifest b/media-libs/opusfile/Manifest index 4f2efcf4c59f..02aecdef3f3b 100644 --- a/media-libs/opusfile/Manifest +++ b/media-libs/opusfile/Manifest @@ -1,4 +1,4 @@ AUX opusfile-0.12-configure-clang16.patch 2946 BLAKE2B 7eab443d03a08136e55329c87e5f084724c205f6789db5747f40318153fbcc4d413024fac6abb5441dbfcca3ece893b82714e0d5ec6d2cced9f94fbbd944c7e4 SHA512 2e7a2c9594f0eda9ed9486e621c932660cd2b86694e4fb5c166da05fd90949a7e74d627ee49ffb516525bf0d5fcfeb2407834d9163da0b46f0c9625362c2f550 DIST opusfile-0.12.tar.gz 471354 BLAKE2B d54d9b8ed011c018dc6de77afab524d2e47ba6cca69b911efacf361b41f3b59a31424cb15a778db14166815ba5e2352f33f8aa7987c30e5e14339c652558d18d SHA512 e25e6968a3183ac0628ce1000840fd6f9f636e92ba984d6a72b76fb2a98ec632d2de4c66a8e4c05ef30655c2a4a13ab35f89606fa7d79a54cfa8506543ca57af EBUILD opusfile-0.12-r1.ebuild 1056 BLAKE2B 2d4a35979ae24d22e1da89c75ee98da5bae1c0001338260df48c73a16e17aeeb266b23cd7ea0dd6438643e01122301aed2a12e0df705a5c8cfb427d80c78cacf SHA512 83a04a2eb58be732d1d841f52b92452faff257e5e2850b5838bd1f0c09553a31a55289c362b2df9fea9777a953578de04f739f6665ce52a02f8b0072e315b159 -MISC metadata.xml 575 BLAKE2B 2e91403f82dd5a8a772db511f2473ae4d7ae318163107d0ff6a9710e62521cd510a129eae38cd1afabbcc88af225b0a3035382c3130a838dac0f6850be255389 SHA512 6d15ee03dcdfc53a581d70e43a0884b0c4a52de9691fcacd9bc7ad80967c775d3f8f7636e112b4893964d6dea3be02bfbb825bc467003dd8de1bc987485e9a4c +MISC metadata.xml 653 BLAKE2B 67076fdf6a18be5b1ebce27ebc0679580105aff3654d11f4369e9d23d13b2ea25feac8e763ffac7a149dd882839c18bcf57dec4f7a4fa47813dc1a1caa85207a SHA512 1d983d7ac52639f15c220cbe6b02e49f829425301dab86e8c68e5f85a674b823bb194c67195ccb45c48022a1a56f0772d206819ddf5dc0b21e235c4df1336660 diff --git a/media-libs/opusfile/metadata.xml b/media-libs/opusfile/metadata.xml index cd6bdabd900a..c035863804f5 100644 --- a/media-libs/opusfile/metadata.xml +++ b/media-libs/opusfile/metadata.xml @@ -14,4 +14,7 @@ <flag name="float">Enable floating point arithmetic operations</flag> <flag name="http">Enable http connections</flag> </use> + <upstream> + <remote-id type="github">xiph/opusfile</remote-id> + </upstream> </pkgmetadata> diff --git a/media-libs/speex/Manifest b/media-libs/speex/Manifest index 270c6ec71afa..70c87c3a926b 100644 --- a/media-libs/speex/Manifest +++ b/media-libs/speex/Manifest @@ -1,4 +1,4 @@ AUX speex-1.2.0-configure.patch 920 BLAKE2B 57b43aee0c57d6f0bf29202573d8f5caa65d41823ca073fb6b8edc1d35dee7b90ec79d52ef08affb0a1cb88b577e0fa3bc62844ded3c4e3235c268e31a0121a6 SHA512 71e6934f104d12bfb7bfb19812ff868dc22a323e2fbd7a480c270650a14842dd03e53e11853e7ddaa9469239a538d0bf09469770fd30f23601406011fe626ffd DIST speex-1.2.1.tar.gz 1043278 BLAKE2B 60afa7eb9ff87ebb1b69e2716b7fa6727b49f6c06ed6eb6fe81236c65dc4128769618dd1f4df31af56a00e9b766c4050c1b3e415c8f972d64d1fb9e7a537a650 SHA512 52e00300df82e1c7fb527b245af02b99a1f37faef74d004b7cd981052f1aa22a412cb18f5c7a5618df4c958f727c97eb7385beec99d68548d5b02e76192d4e0a EBUILD speex-1.2.1.ebuild 1664 BLAKE2B 7fd6ef7778cb2b96f9da0ce34d3fbab570e57f03e606aed1779884b724de01ccaf799c39a1a9017525a2a856764f25f9c2b6965581ebbf996f31e32b1417b561 SHA512 b9c35a29156f67212da7ccf4079086535c94f38aae9294ce967c1451def1ed129b2a74fb3d8863d1ddad3baab351d8ec065f71fc60d1e3c48a65b904d6c67494 -MISC metadata.xml 496 BLAKE2B 596366a2be9ae01438cc46b116d3a280c1498270c1f06ce64f76a38e84f068f210d87bb87a447b3f4cbb7d3783c2d8d60ade5e487e5900ee04b98de70272b6b5 SHA512 bf5453fc3eeeaa740965f864e5d8f13aa969b6111b47ee1f2d382158457c996e9979fadb08ba6c3ea96257c2ad8b954fbb1ece0f8b7b70b4bb4f12c9aa1cf84b +MISC metadata.xml 548 BLAKE2B 20ca971e89b8e1b610855fd5c4b05bafbc4b4cfd8e36e7a28f77b5555f01ee6e3f0b971b57accd8faa00c2ff60c9af12648a55b29878917354e5e9fbc6de9b5f SHA512 ef4cb05574ab0bb73081c67a50c866b6cc6b8f20a6de5cb6511eb3881804980dd57eb71a6e0fe5607c4898e593c762e63e91304afde8b3118bfd8bb69943b2a1 diff --git a/media-libs/speex/metadata.xml b/media-libs/speex/metadata.xml index ea423248499b..ac2564db25cb 100644 --- a/media-libs/speex/metadata.xml +++ b/media-libs/speex/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <upstream> <remote-id type="cpe">cpe:/a:xiph:speex</remote-id> + <remote-id type="github">xiph/speex</remote-id> </upstream> <use> <flag name="utils">Enables speex commandline utilities (speexenc, speexdec).</flag> diff --git a/media-libs/speexdsp/Manifest b/media-libs/speexdsp/Manifest index 2b4f4c6bcf90..74131c5fe138 100644 --- a/media-libs/speexdsp/Manifest +++ b/media-libs/speexdsp/Manifest @@ -1,4 +1,4 @@ AUX speexdsp-1.2.0-configure.patch 1092 BLAKE2B a4629cb00d1920133db30cf1cbdaade58fe69176515c75f140f9ae9060d3111f8d88b65ce67f3bd6c7d86f60db25d15997182865e6a528a8e20603f3edb6544c SHA512 0c6f1b8ae83e98c8899649e3f108ccaad89286db317e5c3f19bd0d78f71839b92b10125ba09b640453d299b3343bfaec128ae72daff72f37f95cbf38652980dd DIST speexdsp-1.2.1.tar.gz 922584 BLAKE2B 9105967eaee3ea8fcba2df1739d92a520407e086d3f4645763d8c7f26adff4f6c46b653e873b3e5ca04fce2ee5f765f8f7a242172d7cc4873fe15c3295a5913b SHA512 41b5f37b48db5cb8c5a0f6437a4a8266d2627a5b7c1088de8549fe0bf0bb3105b7df8024fe207eef194096e0726ea73e2b53e0a4293d8db8e133baa0f8a3bad3 EBUILD speexdsp-1.2.1.ebuild 1342 BLAKE2B fe5a38d929d743abfa8dd09f82a954505d98377d71ddfeae5902e0aca126a33806684cc448faf73ae32c10a60ca967a231fd35e7de8ee4f7a66569f1a002cacb SHA512 681fe95d850e2dfe133a080bc3689fafe34eb3cf3e0a1c2fd9d842a1f54d2b91e3a3c0354b394c7fff2dcc62cecf5324368735b5d35f643c1be141f4f7e4d2ef -MISC metadata.xml 343 BLAKE2B 374a2c5ab50a02673ee9929021f54bb82b932188b88a36cc023cf263647299ebb0a279c2cc723e2c3d4f27dba635b6090a1c7675ba3792bc4a22706a5c97406f SHA512 d0c180268fe692dd8d97debafc8495e0837459ad2845993aa22c675d3777a4aa64d15fba1d2e4674a81a324ee52c1bda751d2c4a5a1547cd56ab5bc0375da8c3 +MISC metadata.xml 398 BLAKE2B 12544559ee0bf709e2c92c2906d11a7e95251b0b6d2fc58ed1ba272856bb79dc2c1d2fadaac6cbaa3707ab5d63c55ae1c9ee024fc87f68f32f04ee8a7846812d SHA512 dab0c15f39dd1edda54478e970bff9ed98313538d31aeaf77bb73b9f13f8b129de7a7bd29152d04231623b9c615cb3a70ab0b7d917eddf86dad09d6e796a2a74 diff --git a/media-libs/speexdsp/metadata.xml b/media-libs/speexdsp/metadata.xml index 22bc3526ff34..9e72cfbd99d1 100644 --- a/media-libs/speexdsp/metadata.xml +++ b/media-libs/speexdsp/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="cpe">cpe:/a:xiph:speex</remote-id> + <remote-id type="github">xiph/speexdsp</remote-id> </upstream> </pkgmetadata> diff --git a/media-libs/tg_owt/Manifest b/media-libs/tg_owt/Manifest index fba3d2237ce4..e78f8e139b73 100644 --- a/media-libs/tg_owt/Manifest +++ b/media-libs/tg_owt/Manifest @@ -4,9 +4,12 @@ AUX tg_owt-0_pre20220209-gcc-12-cstddef.patch 741 BLAKE2B d644e354e5f4c6dd714bc8 AUX tg_owt-0_pre20220209-gcc-12-cstdint.patch 1361 BLAKE2B 06587d98836d335a9edf9fa276cd660e29d2080186ddcd724ae4e82a5a69e6e57684575f6de77f3c026696f3383695a61f97ac6184b1983e99a4ba27533d8c70 SHA512 06d2cd5c6f2a360f0c46a7b91d045dcf582d0eb5efb93304d1377e78beff38dac545b406afd5a52e1a9e0725e9d6b1181984a39c1bead12870267c51afb6b884 AUX tg_owt-0_pre20220507-allow-disabling-X11.patch 4470 BLAKE2B 65498236c2d315ec313bc89b6b5390bba9a378f4dee7bc9dccbe1b0184262aba0c308d7248c69262c900bf963d898feb47662a882e73fcdfc0c1f69b89c5601a SHA512 32cdb00633be55e573d5830d1e3b351e8cc99b209f4de5c23cf49a9dd94cedfa1227f8d44bc1ac73029391eecbb1cab59d718f2fa4939eeb0f31c62b7f649d54 AUX tg_owt-0_pre20220507-unbundle-crc32c.patch 1933 BLAKE2B 1aaae7a32aec615f70cff3e6abea1e8398df778b92adfb20bfc4bdc211491d0da2bec81c8f1cf730a32407a07b762e3bc3fc9ead75fce7fe050d23f7ad658763 SHA512 a8fd7e0ac746b4bf8203eef14e1f6771dccd644466412f40517c2fb1af048ffe34033a910531720cfb478c9d4a8e80b571ae0084d01cf52b8046290eccc9d5da +DIST libyuv-00950840d1c9bcbb3eb6ebc5aac5793e71166c8b.tar.bz2 426626 BLAKE2B efae062f124e3711bab9db232e5f956f09683d6743f54407bf89eeda1bb6ffbc9b82fc250bd709f06b94c28bc8bbb239a28262a002e7b7a2044f31c1432304bb SHA512 bfe2ad76c911986727d0c8b6ee85028fea382fad1eaebbff77a116f848388417719acaea11506936e8160d8dfa46f27a9a3d544b3db356e4c58aa81f493a6912 DIST libyuv-ad890067f661dc747a975bc55ba3767fe30d4452.tar.gz 473845 BLAKE2B 664be51c166440e6b03fa98f65d907efc446800804058a5ea7fdf944e12cb1237a1487e83fbe9a2f1ce4c73521234e43632f921ad0333507737d81e1cb23ce8f SHA512 f97529b80a786e2e92443caabebd6d85a42641e10c3d2940b0f69bedf3b8a96c69c3247abddd059c4ddd6f78107ab7214222a4267a559fc2086c8edf5ea1afbc DIST tg_owt-0_pre20220209.tar.gz 16501237 BLAKE2B fb04aca8803645cc107a7e7fbab8d6020ad91f487ece0445aba29dd1127270e8b3a33d51bb35cfc916168df78cbdc98987610b39fd2cf7b86821b4f9733783c9 SHA512 0a35ce3379887b115117188aa8dce44bf89e23ad6f9fab7320a1cd55cdd534bae4c240778a37cb9588cd6acea1e7a83c22c113d608f7bfd5272ee22bb2773af3 DIST tg_owt-0_pre20220507.tar.gz 15799740 BLAKE2B f12f3ecdfb0c7cfdae12af4734ddf22da4d95fd991b8a8ba17515f9d5c22a2f12b81967c0af15ac150c99129701c50c9384ea0e0240bf2366e176c833b14f7db SHA512 6902c65a1be0bcf300f08c274109ed53cdf92b7aff35915045c3989899fc2584cce3fe9df0e8ac29e708fcc575453fe5a6affaea85787f9c4fcc3bcde3b85711 +DIST tg_owt-0_pre20230105.tar.gz 13822416 BLAKE2B 05004dafaefd748d836f3508d3800bcb15d0bc9894b83340746e85763bff4b77d3dd1fb732eeaf86324b9afbec69be49b172ae7f70d959a7a65ce01b64fb6205 SHA512 70b4ada620cf19acf981abcefcbac1609fe04c51deef0332e288d59c4e7efe98625817c641b92967b4f37217f94e49aa0fc296fcfbb214c08cb63030b1427f54 EBUILD tg_owt-0_pre20220209.ebuild 3499 BLAKE2B dbdfe128deb5963ec2033a79471541424aeaf7513ed06c86b325d384b25b22293de9648e394649f71783db44b806e15e9bd56e57b44629dd6853f7810ac50d17 SHA512 5a18db66356512cc10a3f2bd5772c7be62ddcbe6dd8cebb69112f4e4bfecf96e4250ffc9d3b339707f2e6a04d3937183c3a8d833ad0c3afebd5b6871c844c937 EBUILD tg_owt-0_pre20220507.ebuild 3699 BLAKE2B 891e724403693876aebd5767504eb63a5a6744b7094ebd343c57d74c387f3f56511b20ad01c66e386202fb1fbc147dbfb308d0f4adb29feddc0de32be457570d SHA512 74e84bf4bc69a3ea93b2dd8594e6600aa0c2ae87ef88f07920067973fe6252d71bf13f36f96a45a369a5d2155622425d49f2e15167b8e2b8dd7d9313f6c5ae95 -MISC metadata.xml 410 BLAKE2B 4bb73f9210c791887bf87b9d6476c339ed077d8a9e2cca19a7c96fdd6634dd7217cd96e196dd52f112f79ae88b320651fa91ed7f3b13a7db1a5ae6fb4fa2f1ad SHA512 ee72d3f004691ec17c5c5b95e5c602757a4679d7eb92d31afb1394adf34b758829ea2d1fb049d25a7db24247331e58c22ccb322421fe956ec843c65f7ddc612e +EBUILD tg_owt-0_pre20230105.ebuild 3615 BLAKE2B 70ccfe3258be19e6e14f504adf0fa117bd295ebd555e16ab7b374878303ed881341162390f7cdf7ee3c026b073a50d7ba64a851c7939a59870066b1396971070 SHA512 e11f328b448fab5acd4082ae24d9dc8674f0651be3f8ec9cbee9c90bcfd16f0a9cc615304c860d76b94d060e740602ff6d20df3339f2f04860dd85db09cd1f5b +MISC metadata.xml 493 BLAKE2B ce75939609c6fdef8bce490ca81ba5a011c0a44746e9d813651c2dad5e29e66cc529789b90a61e484c1b13c4d51f0a6cc18988bc7992f9a68e532b6bec9906f2 SHA512 d7aa16d810350f42fb07d47a020363fa77f2a2bab07bd78b49f22afd1ddffc51bf0b55b9ac84ebd208dfc85779494144a75f33e209032c0db15567eb8ba4ebf1 diff --git a/media-libs/tg_owt/metadata.xml b/media-libs/tg_owt/metadata.xml index 76591833456c..4dd0b956cc49 100644 --- a/media-libs/tg_owt/metadata.xml +++ b/media-libs/tg_owt/metadata.xml @@ -9,4 +9,7 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> + <upstream> + <remote-id type="github">desktop-app/tg_owt</remote-id> + </upstream> </pkgmetadata> diff --git a/media-libs/tg_owt/tg_owt-0_pre20230105.ebuild b/media-libs/tg_owt/tg_owt-0_pre20230105.ebuild new file mode 100644 index 000000000000..d7a92a7d199d --- /dev/null +++ b/media-libs/tg_owt/tg_owt-0_pre20230105.ebuild @@ -0,0 +1,122 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="WebRTC build for Telegram" +HOMEPAGE="https://github.com/desktop-app/tg_owt" + +TG_OWT_COMMIT="5098730b9eb6173f0b52068fe2555b7c1015123a" +LIBYUV_COMMIT="00950840d1c9bcbb3eb6ebc5aac5793e71166c8b" +SRC_URI="https://github.com/desktop-app/tg_owt/archive/${TG_OWT_COMMIT}.tar.gz -> ${P}.tar.gz + https://gitlab.com/chromiumsrc/libyuv/-/archive/${LIBYUV_COMMIT}/libyuv-${LIBYUV_COMMIT}.tar.bz2" +S="${WORKDIR}/${PN}-${TG_OWT_COMMIT}" +# Upstream libyuv: https://chromium.googlesource.com/libyuv/libyuv + +LICENSE="BSD" +SLOT="0/${PV##*pre}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" +IUSE="screencast +X" + +# This package's USE flags may change the ABI and require a rebuild of +# dependent pacakges. As such, one should make sure to depend on +# media-libs/tg_owt[x=,y=,z=] for any package that uses this. +# Furthermore, the -DNDEBUG preprocessor flag should be defined by any +# dependent package, failure to do so will change the ABI in the header files. + +# Bundled libs: +# - libyuv (no stable versioning, www-client/chromium and media-libs/libvpx bundle it) +# - libsrtp (project uses private APIs) +# - pffft (no stable versioning, patched) +RDEPEND=" + >=dev-cpp/abseil-cpp-20220623.1:= + dev-libs/openssl:= + dev-libs/protobuf:= + media-libs/libjpeg-turbo:= + >=media-libs/libvpx-1.10.0:= + media-libs/openh264:= + media-libs/opus + media-video/ffmpeg:= + dev-libs/crc32c + screencast? ( + dev-libs/glib:2 + media-video/pipewire:= + ) + X? ( + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXrandr + x11-libs/libXtst + ) +" +DEPEND="${RDEPEND} + screencast? ( + media-libs/libglvnd + media-libs/mesa + x11-libs/libdrm + ) +" +BDEPEND="virtual/pkgconfig" + +src_unpack() { + unpack "${P}.tar.gz" + unpack "libyuv-${LIBYUV_COMMIT}.tar.bz2" + mv -T "libyuv-${LIBYUV_COMMIT}" "${S}/src/third_party/libyuv" || die +} + +src_prepare() { + # libopenh264 has GENERATED files with yasm that aren't excluded by + # EXCLUDE_FROM_ALL, and I have no clue how to avoid this. + # These source files aren't used with system-openh264, anyway. + sed -i '/include(cmake\/libopenh264.cmake)/d' CMakeLists.txt || die + + # The sources for these aren't available, avoid needing them + sed -e '/include(cmake\/libcrc32c.cmake)/d' \ + -e '/include(cmake\/libabsl.cmake)/d' -i CMakeLists.txt || die + + # "lol" said the scorpion, "lmao" + sed -i '/if (BUILD_SHARED_LIBS)/{n;n;s/WARNING/DEBUG/}' CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + # Defined by -DCMAKE_BUILD_TYPE=Release, avoids crashes + # See https://bugs.gentoo.org/754012 + # EAPI 8 still wipes this flag. + append-cppflags '-DNDEBUG' + + local mycmakeargs=( + -DTG_OWT_USE_X11=$(usex X) + -DTG_OWT_USE_PIPEWIRE=$(usex screencast) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # Save about 15MB of useless headers + rm -r "${ED}/usr/include/tg_owt/rtc_base/third_party" || die + rm -r "${ED}/usr/include/tg_owt/common_audio/third_party" || die + rm -r "${ED}/usr/include/tg_owt/modules/third_party" || die + rm -r "${ED}/usr/include/tg_owt/third_party" || die + + # Install a few headers anyway, as required by net-im/telegram-desktop... + local headers=( + third_party/libyuv/include + rtc_base/third_party/sigslot + rtc_base/third_party/base64 + ) + for dir in "${headers[@]}"; do + pushd "${S}/src/${dir}" > /dev/null || die + find -type f -name "*.h" -exec install -Dm644 '{}' "${ED}/usr/include/tg_owt/${dir}/{}" \; || die + popd > /dev/null || die + done +} |