net-libs/ccrtp: fix build for use gcrypt only

Drop openssl build

Package-Manager: Portage-3.0.30, Repoman-3.0.3
weblate-cli-1.13
Victor Kustov 2 years ago
parent 3f2284926b
commit e96a7c97e5
Signed by: ktrace
GPG Key ID: 9494B70312B4CADE

@ -1,7 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake
DESCRIPTION="GNU ccRTP - Implementation of the IETF real-time transport protocol"
HOMEPAGE="https://www.gnu.org/software/ccrtp/"
@ -13,7 +15,6 @@ IUSE="doc"
SLOT="0/2"
RDEPEND="
>=dev-cpp/commoncpp2-1.3.0:0=
dev-libs/libgcrypt:0=
>=dev-libs/ucommon-6.2.2:=
"
@ -21,13 +22,4 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )
"
src_configure() {
econf --disable-static
}
src_install() {
use doc && HTML_DOCS="doc/html/*"
default
find "${D}" -name '*.la' -delete || die
}
PATCHES=( "${FILESDIR}"/"${PN}-${PV}"-gcrypt-only.patch )

@ -0,0 +1,34 @@
diff --git a/CMakeLists.orig b/CMakeLists.txt
index 8fa5841..7601b2d 100644
--- a/CMakeLists.orig
+++ b/CMakeLists.txt
@@ -68,11 +68,11 @@ include(CapeMakeTargets)
enable_arg(srtp true)
-if(CMAKE_COMPILER_IS_GNUCXX)
- add_definitions(-g -O2 -fno-strict-aliasing)
- add_definitions(-Wno-long-long -Wno-char-subscripts)
- add_definitions(-Wall -ansi -pedantic)
-endif()
+#if(CMAKE_COMPILER_IS_GNUCXX)
+# add_definitions(-g -O2 -fno-strict-aliasing)
+# add_definitions(-Wno-long-long -Wno-char-subscripts)
+# add_definitions(-Wall -ansi -pedantic)
+#endif()
if(WIN32 AND NOT CYGWIN AND NOT MSYS AND NOT MINGW)
check_include_files(openssl/ssl.h HAVE_OPENSSL_WINDOWS)
@@ -83,10 +83,11 @@ endif()
if (enable_srtp)
# now get info about crypto libraries
gcr_check(GCRYPT gcrypt)
- if (GCRYPT_FOUND AND NOT OPENSSL_FOUND)
+ if (GCRYPT_FOUND)
set(SRTP_SUPPORT TRUE)
check_include_files(gcrypt.h HAVE_GCRYPT_H)
set(LIBS ${LIBS} ${GCRYPT_LIBRARIES})
+ message(STATUS " Using GCRYPT !")
else ()
set(GCRYPT_FOUND FALSE)
if (OPENSSL_FOUND OR HAVE_OPENSSL_WINDOWS)
Loading…
Cancel
Save