mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
77 lines
1.7 KiB
Bash
77 lines
1.7 KiB
Bash
SUMMARY="Secure RTP (SRTP) Reference Implementation"
|
|
DESCRIPTION="This package provides an implementation of the Secure Real-time \
|
|
Transport Protocol (SRTP), the Universal Security Transform (UST), and \
|
|
a supporting cryptographic kernel."
|
|
HOMEPAGE="https://github.com/cisco/libsrtp/"
|
|
COPYRIGHT="2001-2023 Cisco Systems, Inc."
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8a43ef8e9ae2b665292591af62aa1a4ae41e468b6d98d8258f91478735da4e09"
|
|
SOURCE_DIR="libsrtp-$portVersion"
|
|
PATCHES="libsrtp-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libsrtp2$secondaryArchSuffix = $portVersion
|
|
lib:libsrtp2$secondaryArchSuffix = 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libsrtp2${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsrtp2$secondaryArchSuffix = 1
|
|
"
|
|
REQUIRES_devel="
|
|
libsrtp2$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix >= 3
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export LDFLAGS="-lnetwork"
|
|
|
|
meson \
|
|
--buildtype=release \
|
|
--prefix=$prefix \
|
|
--libdir=$libDir \
|
|
--libexecdir=$binDir \
|
|
--datadir=$dataDir \
|
|
--includedir=$includeDir \
|
|
-Dcrypto-library=openssl \
|
|
_build
|
|
|
|
ninja -C _build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C _build install
|
|
|
|
# prepare development lib links
|
|
prepareInstalledDevelLib libsrtp2
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|