libccrtp: new recipe (2.1.2) (#13648)

This commit is contained in:
Christof Meerwald
2026-01-22 07:26:10 +01:00
committed by GitHub
parent 09a4db07b6
commit 7d400dd298
2 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
SUMMARY="Real-time transport protocol library"
DESCRIPTION="GNU ccRTP is an implementation of RTP, the real-time \
transport protocol from the IETF (see RFC 3550, RFC 3551 and RFC 3555)."
HOMEPAGE="https://www.gnu.org/software/ccrtp/"
COPYRIGHT="1999-2000 Open Source Telecom Corporation
2001-2005 Open Source Telecom Corporation, Federico Montesino Pouzols
2006-2014 David Sugar, Tycho Softworks, Federico Montesino Pouzols, Werner Dittmann
2015 Cherokees of Idaho, Federico Montesino Pouzols, Werner Dittmann"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://ftp.gnu.org/gnu/ccrtp/ccrtp-$portVersion.tar.gz"
CHECKSUM_SHA256="f035ca0e1b5d37b78e358f07a25b05c5cdaf2c85c4b31cf29f6be17f288a349e"
SOURCE_DIR="ccrtp-$portVersion"
PATCHES="ccrtp-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="3.0.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libccrtp$secondaryArchSuffix = $portVersion
lib:libccrtp$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcommoncpp$secondaryArchSuffix
lib:libgcrypt$secondaryArchSuffix
"
PROVIDES_devel="
libccrtp${secondaryArchSuffix}_devel = $libVersionCompat
devel:libccrtp$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libccrtp$secondaryArchSuffix == $portVersion base
devel:libcommoncpp$secondaryArchSuffix
devel:libgcrypt$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcommoncpp$secondaryArchSuffix
devel:libgcrypt$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
./autogen.sh
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm -f $libDir/libccrtp.la
prepareInstalledDevelLib libccrtp
fixPkgconfig
# devel package
packageEntries devel $developDir
}

View File

@@ -0,0 +1,43 @@
From 186cfdb915f93b807ad634d638133f9a9120eb70 Mon Sep 17 00:00:00 2001
From: Christof Meerwald <cmeerw@cmeerw.org>
Date: Tue, 6 Jan 2026 17:18:50 +0000
Subject: [PATCH] fix endian header inclusion
---
src/ccrtp/crypto/brg_endian.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ccrtp/crypto/brg_endian.h b/src/ccrtp/crypto/brg_endian.h
index c03c7c5..a7d92fd 100644
--- a/src/ccrtp/crypto/brg_endian.h
+++ b/src/ccrtp/crypto/brg_endian.h
@@ -45,7 +45,7 @@
#elif defined( __linux__ ) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
# if !defined( __MINGW32__ ) && !defined(AVR)
# include <endian.h>
-# if !defined( __BEOS__ )
+# if !defined( __BEOS__ ) && !defined( __HAIKU__ )
# include <byteswap.h>
# endif
# endif
--
2.52.0
From cf3656c7a0a170505e38aa6a439b07212fa1aa9b Mon Sep 17 00:00:00 2001
From: Christof Meerwald <cmeerw@cmeerw.org>
Date: Tue, 6 Jan 2026 16:51:23 +0000
Subject: [PATCH] Fix libgcrypt detection in configure script
diff --git a/configure.ac b/configure.ac
index d81fd4f..8c82cd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ if test "${enable_srtp}" = "yes"
then
openssl="false"
gcrypt="false"
- AM_PATH_LIBGCRYPT_CCRTP([1:1.2.3],
+ AM_PATH_LIBGCRYPT([1:1.2.3],
[AC_CHECK_HEADERS([gcrypt.h],
[], AC_MSG_ERROR([libgcrypt headers not found.]))
LIBS="$LIBGCRYPT_LIBS $LIBS"