Files
haikuports/net-libs/enet/enet-1.3.0.recipe
2015-08-04 12:08:31 -04:00

74 lines
1.8 KiB
Bash

SUMMARY="A simple and robust network communication layer"
DESCRIPTION="ENet's purpose is to provide a relatively thin, simple and \
robust network communication layer on top of UDP (User Datagram Protocol). \
The primary feature it provides is optional reliable, in-order delivery of \
packets.
ENet omits certain higher level networking features such as authentication, \
lobbying, server discovery, encryption, or other similar tasks that are \
particularly application specific so that the library remains flexible, \
portable, and easily embeddable."
HOMEPAGE="http://enet.bespin.org"
SOURCE_URI="http://enet.bespin.org/download/enet-1.3.0.tar.gz"
CHECKSUM_SHA256="200c271b218979db3bce6d9e60659d3f35a52d698c4972f20eb91a52f0d8d62c"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2002-2010 Lee Salzman"
PROVIDES="
enet$secondaryArchSuffix = $portVersion compat >= 1.0.0
lib:libenet$secondaryArchSuffix = $portVersion compat >= 1.0.0
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:aclocal
cmd:autoreconf
cmd:libtoolize
cmd:make
cmd:sed
"
BUILD()
{
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
}
INSTALL()
{
make install
prepareInstalledDevelLibs libenet
# devel package
packageEntries devel \
$developDir
# Remove stuff we don't need in the secondary architecture base package.
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
enet${secondaryArchSuffix}_devel = $portVersion
devel:libenet$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
enet$secondaryArchSuffix == $portVersion base
"