Files
haikuports/net-libs/libnice/libnice-0.1.14.recipe
2017-09-20 18:33:27 +02:00

86 lines
2.4 KiB
Bash

SUMMARY="A library for establishing peer-to-peer UDP data streams"
DESCRIPTION="Libnice is an implementation of the IETF's Interactive \
Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal \
Utilities for NAT (STUN) standard (RFC 5389).
ICE is useful for applications that want to establish peer-to-peer UDP \
data streams. It automates the process of traversing NATs and provides \
security against some attackes. It also allows applications to create \
reliable streams using a TCP over UDP layer."
HOMEPAGE="http://nice.freedesktop.org/wiki"
COPYRIGHT="2006-2011 Collabora Ltd.
2006-2011 Nokia Corporation"
LICENSE="MPL v1.1
GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://nice.freedesktop.org/releases/libnice-$portVersion.tar.gz"
CHECKSUM_SHA256="be120ba95d4490436f0da077ffa8f767bf727b82decf2bf499e39becc027809c"
PATCHES="libnice-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libnice$secondaryArchSuffix = $portVersion
lib:libnice$secondaryArchSuffix = 10.7.0 compat >= 10
cmd:sdp_example$secondaryArchSuffix = $portVersion
cmd:simple_example$secondaryArchSuffix = $portVersion
cmd:stunbdc$secondaryArchSuffix = $portVersion
cmd:stund$secondaryArchSuffix = $portVersion
cmd:threaded_example$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgio_2.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgnutls$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libgthread_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
libnice${secondaryArchSuffix}_devel = $portVersion
devel:libnice$secondaryArchSuffix = 10.7.0 compat >= 10
"
REQUIRES_devel="
libnice$secondaryArchSuffix == $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgio_2.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgnutls$secondaryArchSuffix
devel:libgobject_2.0$secondaryArchSuffix
devel:libgthread_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:gtkdocize
cmd:libtoolize
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
CFLAGS="-D_BSD_SOURCE" runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libnice.la
prepareInstalledDevelLibs libnice
fixPkgconfig
packageEntries devel $developDir
}