# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 EGIT_REPO_URI="https://gitlab.linphone.org/BC/public/${PN}.git" EGIT_SUBMODULES=() inherit cmake git-r3 xdg DESCRIPTION="A free VoIP and video softphone based on the SIP protocol" HOMEPAGE="https://gitlab.linphone.org/BC/public/linphone-desktop" SRC_URI="" LICENSE="GPL-3" KEYWORDS="" SLOT="0" RESTRICT="test" # needs sdk RDEPEND="dev-libs/belcard dev-libs/jsoncpp:0= dev-libs/liblinphone dev-qt/qtconcurrent:5 dev-qt/qtcore:5 dev-qt/qtdbus:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtquickcontrols:5 dev-qt/qtquickcontrols2:5[widgets] dev-qt/qtsvg:5 dev-qt/qtwidgets:5 media-libs/mediastreamer2[zrtp,jpeg] net-libs/bctoolbox net-libs/ortp" DEPEND="${RDEPEND}" BDEPEND="dev-vcs/git dev-qt/linguist-tools:5 virtual/pkgconfig" DOCS=( {CHANGELOG,README}.md ) src_prepare() { # Don't build SDK and app-library targets, remove non-existed directory, # reuse OUTPUT for bin directory, remove RPATH and create directories under share directory sed -i -e "/ExternalProject_Add(sdk/,+17d" \ -e "/app-library/d" \ -e '/set(LINPHONE_OUTPUT_DIR/s|/linphone-sdk/desktop||' \ -e "/set(APPLICATION_OUTPUT_DIR/s|/OUTPUT|/bin|" \ -e "/ORIGIN/d" \ -e "\$aadd_custom_target(make-linphone ALL COMMAND \${CMAKE_COMMAND} -E make_directory \"\${CMAKE_BINARY_DIR}/share/linphone\")" \ -e "\$aadd_custom_target(make-sounds ALL COMMAND \${CMAKE_COMMAND} -E make_directory \"\${CMAKE_BINARY_DIR}/share/sounds/linphone\")" \ CMakeLists.txt || die "sed failed for CMakeLists.txt" # Don't install qt.conf sed -i "/install(FILES \"\${CMAKE_CURRENT_BINARY_DIR}\/..\/..\/qt.conf/d" \ linphone-app/cmake_builder/linphone_package/CMakeLists.txt \ || die "sed failed for linphone_package/CMakeLists.txt" # Don't install anything in compile phase and fix headers installation sed -i -e '/-E copy $