summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-05-03 08:55:48 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-05-03 10:01:39 -0700
commitb69c36acab3ef74df82fe39d81b36feac34b23bc (patch)
tree086cf87e5a0310d0604832e19fd6b2569c42b203 /media-libs/tg_owt
parentnet-im/telegram-desktop: include patch upstream references (diff)
downloadgentoo-b69c36acab3ef74df82fe39d81b36feac34b23bc.tar.gz
gentoo-b69c36acab3ef74df82fe39d81b36feac34b23bc.tar.bz2
gentoo-b69c36acab3ef74df82fe39d81b36feac34b23bc.zip
media-libs/tg_owt: alter sse2 workaround
upstream added some logic here, but not enough for ppc64 hack it around Package-Manager: Portage-3.0.18, Repoman-3.0.3 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_pre20210422.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/media-libs/tg_owt/tg_owt-0_pre20210422.ebuild b/media-libs/tg_owt/tg_owt-0_pre20210422.ebuild
index 0c5ed6f7895c..c7df11e1b9c4 100644
--- a/media-libs/tg_owt/tg_owt-0_pre20210422.ebuild
+++ b/media-libs/tg_owt/tg_owt-0_pre20210422.ebuild
@@ -62,9 +62,12 @@ src_prepare() {
sed -i -e '/desktop_capture\/screen_drawer\.cc/d' \
-e '/desktop_capture\/screen_drawer_lock_posix\.cc/d' CMakeLists.txt || die
- # Causes forced inclusion of SSE2, so we strip it out on x86* arches
- if ! use amd64 && ! use x86; then
- sed -i '/modules\/desktop_capture/d' CMakeLists.txt || die
+ # HACK
+ # build/headers don't have ppc64 condition and force SSE2.
+ # sed it out and force C version on ppc64
+ # without this linking tdesktop will fail with undef reference to `webrtc::VectorDifference_SSE2_W32
+ if use ppc64; then
+ sed -i 's/VectorDifference_SSE2_W.*/VectorDifference_C;/g' src/modules/desktop_capture/differ_block.cc || die
fi
cmake_src_prepare