diff --git a/net-libs/ortp/Manifest b/net-libs/ortp/Manifest new file mode 100644 index 0000000..b4b11c9 --- /dev/null +++ b/net-libs/ortp/Manifest @@ -0,0 +1 @@ +DIST ortp-5.1.3.tar.gz 240028 BLAKE2B 642cb68fd787698de7900a3bfcc95f7b27b3a9080cd0d841a24c5a7999d195dedfb3f3c59c011b8a31076bf20ae77132b0dac66cee6a5b9837dd410f1fa8efeb SHA512 cba21088126d8fbf0942ae17cc3741fa0078a1ac0e8745d3b975a4d9065fc7dd27912698210e4fda0c39a93a5fd2b1617c3c314776b6cfb599d4f6af691457e3 diff --git a/net-libs/ortp/metadata.xml b/net-libs/ortp/metadata.xml new file mode 100644 index 0000000..d067907 --- /dev/null +++ b/net-libs/ortp/metadata.xml @@ -0,0 +1,22 @@ + + + + + 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 +}