summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/Manifest.gzbin68079 -> 68077 bytes
-rw-r--r--media-libs/tg_owt/Manifest3
-rw-r--r--media-libs/tg_owt/tg_owt-0_pre20230428.ebuild130
-rw-r--r--media-libs/zimg/Manifest2
-rw-r--r--media-libs/zimg/zimg-3.0.4-r1.ebuild4
5 files changed, 136 insertions, 3 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz
index 0d00ccffc84c..b1f3b5c245ad 100644
--- a/media-libs/Manifest.gz
+++ b/media-libs/Manifest.gz
Binary files differ
diff --git a/media-libs/tg_owt/Manifest b/media-libs/tg_owt/Manifest
index 214bcbd08706..43d4e0d35f0b 100644
--- a/media-libs/tg_owt/Manifest
+++ b/media-libs/tg_owt/Manifest
@@ -1,5 +1,8 @@
AUX tg_owt-0_pre20230105-gcc-13-cstdint.patch 832 BLAKE2B 694b6d5223d87b6b735230de5e75a0e66821d86b92a8c6af85b45459d2c93ac6ce08e86aefeeb5fafee071c28b5bff3ad9120e7ca9d29195e7e4fe8024eb0ff7 SHA512 086a5a6e6459c2f4ff609a6c06394dcf449105a49307517e5c93a5641d3ce398793e175d1613a54c2e8831081950ed30dfc1c25122b0f1523cbe7b44f97f4ad0
+DIST libsrtp-a566a9cfcd619e8327784aa7cff4a1276dc1e895.tar.gz 636836 BLAKE2B 496afcb80f67a8f76104e338408d4930475daadaf3f7cd2d673336aef938986876995e475a4d932424d7f99f6a339bad360f566d6fd3719316eaf8241970cf8d SHA512 930e665434e80e8a26d81b785563c915619b546a9a0af0455a14278816997074add852fae107027f4899415cb0ab47ffbf9492bea76b94b10f558b52098bbf92
DIST libyuv-00950840d1c9bcbb3eb6ebc5aac5793e71166c8b.tar.bz2 426626 BLAKE2B efae062f124e3711bab9db232e5f956f09683d6743f54407bf89eeda1bb6ffbc9b82fc250bd709f06b94c28bc8bbb239a28262a002e7b7a2044f31c1432304bb SHA512 bfe2ad76c911986727d0c8b6ee85028fea382fad1eaebbff77a116f848388417719acaea11506936e8160d8dfa46f27a9a3d544b3db356e4c58aa81f493a6912
DIST tg_owt-0_pre20230105.tar.gz 13822416 BLAKE2B 05004dafaefd748d836f3508d3800bcb15d0bc9894b83340746e85763bff4b77d3dd1fb732eeaf86324b9afbec69be49b172ae7f70d959a7a65ce01b64fb6205 SHA512 70b4ada620cf19acf981abcefcbac1609fe04c51deef0332e288d59c4e7efe98625817c641b92967b4f37217f94e49aa0fc296fcfbb214c08cb63030b1427f54
+DIST tg_owt-0_pre20230428.tar.gz 13725816 BLAKE2B c854de42696e397ea7101b7536f940c5424ebeae4105b84c9d3ef39242409b450e3cf38b7319ede7eb185667b78f4d4fb72c046880495f300205dff4d553be3a SHA512 883be1ba54db10462dadf0ef0e03270535972eed37d7fec745bd660faa67eabc539bfa88122a9c64a895cba97fb1d1a67ff6ee590ad002480ad327736f07284e
EBUILD tg_owt-0_pre20230105.ebuild 3684 BLAKE2B fea2495d1ef234f4184c4ceb0a7e854277cc2105f55efe1c503d6b230eb25543ee587c91684ef65d2942e319d0d1a8b7aca4689cac9f7d372dea9125a3e20d30 SHA512 71da9849ec86c08e95c30d26cfddbed879abf798aa246b2ca01cddaf724ce49b3cac2fa1f5e6bc73df4b024957c460ba39f070be4662f4d4336bee08f45b2ee8
+EBUILD tg_owt-0_pre20230428.ebuild 3962 BLAKE2B 360b96e2f164df0585041201f5d61d76942555e340ea364d4d42d5a1a76602567750a12a98e316b5e12f8af018c449fb509c3fe1936b8b97deafcca8279a6be2 SHA512 c8043be10ee48e15f4494ad7f2cbcf2c722adee5b563369e66e16b7f75776ed8263a1ddeef802af1b4d0bc5e1c693881b07c69a950972687f5534b598e309fab
MISC metadata.xml 493 BLAKE2B ce75939609c6fdef8bce490ca81ba5a011c0a44746e9d813651c2dad5e29e66cc529789b90a61e484c1b13c4d51f0a6cc18988bc7992f9a68e532b6bec9906f2 SHA512 d7aa16d810350f42fb07d47a020363fa77f2a2bab07bd78b49f22afd1ddffc51bf0b55b9ac84ebd208dfc85779494144a75f33e209032c0db15567eb8ba4ebf1
diff --git a/media-libs/tg_owt/tg_owt-0_pre20230428.ebuild b/media-libs/tg_owt/tg_owt-0_pre20230428.ebuild
new file mode 100644
index 000000000000..03a1cd70a5c9
--- /dev/null
+++ b/media-libs/tg_owt/tg_owt-0_pre20230428.ebuild
@@ -0,0 +1,130 @@
+# 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="9d120195334db4f232c925529aa7601656dc59d7"
+LIBYUV_COMMIT="00950840d1c9bcbb3eb6ebc5aac5793e71166c8b"
+LIBSRTP_COMMIT="a566a9cfcd619e8327784aa7cff4a1276dc1e895"
+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
+ https://github.com/cisco/libsrtp/archive/${LIBSRTP_COMMIT}.tar.gz -> libsrtp-${LIBSRTP_COMMIT}.tar.gz"
+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"
+
+PATCHES=(
+ "${FILESDIR}/tg_owt-0_pre20230105-gcc-13-cstdint.patch"
+)
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ unpack "libyuv-${LIBYUV_COMMIT}.tar.bz2"
+ mv -T "libyuv-${LIBYUV_COMMIT}" "${S}/src/third_party/libyuv" || die
+ unpack "libsrtp-${LIBSRTP_COMMIT}.tar.gz"
+ mv -T "libsrtp-${LIBSRTP_COMMIT}" "${S}/src/third_party/libsrtp" || 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
+}
diff --git a/media-libs/zimg/Manifest b/media-libs/zimg/Manifest
index 055ba2bbae87..dd9e888d06af 100644
--- a/media-libs/zimg/Manifest
+++ b/media-libs/zimg/Manifest
@@ -1,7 +1,7 @@
AUX backport-e29571f-issue-175.patch 3113 BLAKE2B 667a71b0749c335675d7bc6f71ef7fde19a9ec7b88444caf3bc231e99b7800af56d0584a1d8d4172d67bd8876c93afa1f3327962a603c8bd78a8c6dcbf5b5b15 SHA512 02e227bd4b8fedd07192802e5f9e48ecd2621d480d0e9a52806c13ddf02ce5d0d492bb415d2c52361a0ea9abc3bc814886dccd16f96721e4af88cc04af57e781
AUX system-gtest.patch 1483 BLAKE2B 21e9e347c85a81e562cff1bd6e9d6a017f87ad408566e7d93205a6ecd77222cd361f112c15f4720a464c86b1801a96666401f5daeec83bffcfb81ccc67f2c4d5 SHA512 91a034c0f303fee5a6b7deec5badf9269d4888c558a20a2cbeb52005f296a38446e3df8a3bfd2ba863ca7d9a0c350782b3b02bae91de04e2ff81d65e6113a4f7
DIST zimg-3.0.4.tar.gz 326578 BLAKE2B 0fa63ccb0037cb6de93cdf9a5cc2d7b7d822652361c08845f9776b85856f03f29ef9fdbe9db55c074922ef13cf76ce4170786fd480da934556997658b7c32a30 SHA512 94beddb109f0b301f0fecf09ea2761d3707aaa1f0cc1caf682bb3d1d7dcd89164de8388e922758e274914df9c7c7c1a0a0c5192e78f88655ed4c6da0ee51995c
-EBUILD zimg-3.0.4-r1.ebuild 1119 BLAKE2B 8b691e47212e073b75a2783284b90c94e016deec948a0d222d765aa56ceaf0f8c6fe46eb95f3682da91136d0e74a25d38ea3af63c9896da82842938a68d054d2 SHA512 fff0cbcadd46dc82a777993cd8ceb83e0f3d554095690f40ac852e422923721607b65bac35f4aa7b44d9a5aa7d811127fb1731f6abfe48430d5c9c2c5bafb375
+EBUILD zimg-3.0.4-r1.ebuild 1125 BLAKE2B f7597d44f7ad882d863315942e5d6b7da7677c40d710fa355905562a7e9eb0012077f073e470dac72ab26f70ca58d8bb6551c5573cbbcc26ca3a0b821f35acbe SHA512 46e97188580c823a21aa7ef33fa43cc68306c23ab118dc7c335e75544a02a26b4349275e4a1b44cb0850c8e7db30f1a1711991eecd08cefe64517e695bcdb930
EBUILD zimg-3.0.4.ebuild 983 BLAKE2B 14255a1698018edff4d8bac689ad1fdb925290f5721184e736cb02fb8bb288fcbef7fa8107f21f0b9b44e2f391b5f9529e3219b5d6df2522fd860ea15a2104d4 SHA512 9322323dce7756bd84095076ee2798c01fbf4d87fef2c93e1a17d6b92521a9185b0204fcebccb473fdc3b862ec97fe7e9e97ef62c0b254ac71e17ac453570e35
EBUILD zimg-9999.ebuild 919 BLAKE2B 6bf76a22b9cc37522fbc9c13cdfbdf20b1977856efa802cb96d2cdfebceea7348840959d41258212224408af3900f4baf4dfa5421d9f4e00cb2e753cd2ff5a20 SHA512 bfe8f10e33391bb5e87e91966ca239ea78d6a07c56f5c3617662da1006697c2d9c2cca2b62e6375649f1b0a66ff3c98c1dac038ec469782e38437e93886dc827
MISC metadata.xml 312 BLAKE2B 278c7bce7361e1cb96725595df0c35f0e227db2e6732d3cf1b53c960ad4a319a831a0e7cbf51702b24785f0f8d7bc73d3443a17e88595509a62a476caec5c5f4 SHA512 c070a6ea9f0a64532f6aa33b12ad04b293e8a6e014245936a71d5ab6facdec8ffd2665a49cdf3562a3dbc60406b6a24261aa9e65f7b7b63ef0d005927967cac2
diff --git a/media-libs/zimg/zimg-3.0.4-r1.ebuild b/media-libs/zimg/zimg-3.0.4-r1.ebuild
index ffef62a46080..5b947dc93b3e 100644
--- a/media-libs/zimg/zimg-3.0.4-r1.ebuild
+++ b/media-libs/zimg/zimg-3.0.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,7 +8,7 @@ if [[ ${PV} = *9999* ]] ; then
inherit git-r3
else
SRC_URI="https://github.com/sekrit-twc/zimg/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
S="${WORKDIR}/${PN}-release-${PV}/"
fi
inherit autotools multilib-minimal