From eb1c17a44de9177be058d211f94a13557bab1a01 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Thu, 28 Apr 2022 14:47:32 +0200 Subject: [PATCH] net-libs/ortp: New package from nest Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay + + + + spiderx@spiderx.dp.ua + Vladimir Pavljuchenkov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + oRTP is a library that implements Real-Time Transport Protocol + (RFC 3550). It is available for most unix clones (primilarly Linux and HP-UX). + + + Turn on NTP timestamping on received packet + + + BelledonneCommunications/ortp + + diff --git a/net-libs/ortp/ortp-5.1.3.ebuild b/net-libs/ortp/ortp-5.1.3.ebuild new file mode 100644 index 0000000..6077aa8 --- /dev/null +++ b/net-libs/ortp/ortp-5.1.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack" +HOMEPAGE="https://gitlab.linphone.org/BC/public/ortp" +SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="debug doc ntp-timestamp minimal static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="net-libs/bctoolbox[test?]" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + # Fix path for datadir + sed -i -e "/ORTP_DOC_VERSION/s/MINOR}/MINOR}.\${ORTP_MICRO_VERSION}/" \ + -e "/ORTP_DOC_VERSION/s/ORTP_VERSION_MAJOR/ORTP_MAJOR_VERSION/" \ + -e "/ORTP_DOC_VERSION/s/ORTP_VERSION_MINOR/ORTP_MINOR_VERSION/" \ + -e "/oRTP VERSION/s/0/$(ver_cut 3)/" \ + CMakeLists.txt || die "sed failed for CMakeLists.txt" + + # Fix tests + sed -i '/EXECUTABLES/s/ fectest//' src/tests/CMakeLists.txt \ + || die "sed failed for tests/CMakeLists.txt" + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_DEBUG_LOGS="$(usex debug)" + -DENABLE_DOC="$(usex doc)" + -DENABLE_NTP_TIMESTAMP="$(usex ntp-timestamp)" + -DENABLE_PERF="$(usex minimal)" + -DENABLE_STATIC="$(usex static-libs)" + -DENABLE_TESTS="$(usex test)" + ) + + cmake_src_configure +}