summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-03-25 12:14:20 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-03-25 12:30:50 -0700
commit96daf7311fef02995de51e9f4df97fc9b81dadc3 (patch)
tree1f9a24650783d1b479fa9448f4e26f4ece404606 /media-libs/tg_owt
parentnet-im/telegram-desktop: Take maintainership, bump to 2.7.1 (diff)
downloadgentoo-96daf7311fef02995de51e9f4df97fc9b81dadc3.tar.gz
gentoo-96daf7311fef02995de51e9f4df97fc9b81dadc3.tar.bz2
gentoo-96daf7311fef02995de51e9f4df97fc9b81dadc3.zip
media-libs/tg_owt: strip desktop_capture module from build
This allows to build tg on platforms without SSE2. desktop_capture module is for mac only anyway. See-also: https://github.com/desktop-app/tg_owt/pull/57 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'media-libs/tg_owt')
-rw-r--r--media-libs/tg_owt/tg_owt-0_pre20210309.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
index 9b9e8fe2fc6d..6401fb3d7931 100644
--- a/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
+++ b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -63,6 +63,11 @@ src_prepare() {
# Can cause race conditions when no webcam is available or webcam is blocked
# See https://bugs.debian.org/982556
sed -i -e 's/#ifndef NO_MAIN_THREAD_WRAPPING/#if 0/' src/rtc_base/thread.cc || die
+
+ # Causes forced inclusion of SSE2, only needed on MAC
+ # https://github.com/desktop-app/tg_owt/pull/57
+ sed -i '/modules\/desktop_capture/d' CMakeLists.txt || die
+
cmake_src_prepare
}