net-libs/ortp: New package from nest
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
1c97488800
commit
eb1c17a44d
1
net-libs/ortp/Manifest
Normal file
1
net-libs/ortp/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST ortp-5.1.3.tar.gz 240028 BLAKE2B 642cb68fd787698de7900a3bfcc95f7b27b3a9080cd0d841a24c5a7999d195dedfb3f3c59c011b8a31076bf20ae77132b0dac66cee6a5b9837dd410f1fa8efeb SHA512 cba21088126d8fbf0942ae17cc3741fa0078a1ac0e8745d3b975a4d9065fc7dd27912698210e4fda0c39a93a5fd2b1617c3c314776b6cfb599d4f6af691457e3
|
22
net-libs/ortp/metadata.xml
Normal file
22
net-libs/ortp/metadata.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
oRTP is a library that implements Real-Time Transport Protocol
|
||||
(RFC 3550). It is available for most unix clones (primilarly Linux and HP-UX).
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="ntp-timestamp">Turn on NTP timestamping on received packet</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">BelledonneCommunications/ortp</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
49
net-libs/ortp/ortp-5.1.3.ebuild
Normal file
49
net-libs/ortp/ortp-5.1.3.ebuild
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue