2015-07-19 12:05:34 +00:00
|
|
|
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.
|
2014-01-02 21:40:57 +00:00
|
|
|
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, \
|
2015-07-19 12:05:34 +00:00
|
|
|
portable, and easily embeddable."
|
2015-08-04 16:08:31 +00:00
|
|
|
HOMEPAGE="http://enet.bespin.org"
|
2016-12-17 16:29:38 +00:00
|
|
|
COPYRIGHT="2002-2010 Lee Salzman"
|
|
|
|
LICENSE="MIT"
|
2017-10-26 11:52:52 +00:00
|
|
|
REVISION="1"
|
|
|
|
SOURCE_URI="http://enet.bespin.org/download/enet-$portVersion.tar.gz"
|
2020-01-02 18:23:33 +00:00
|
|
|
CHECKSUM_SHA256="98f6f57aab0a424469619ed3047728f0d3901ce8f0dea919c11e7966d807e870"
|
2017-10-26 11:52:52 +00:00
|
|
|
PATCHES="enet-$portVersion.patchset"
|
2016-12-17 16:29:38 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all ?x86"
|
2020-01-02 18:23:33 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
2013-12-09 19:38:44 +00:00
|
|
|
|
|
|
|
PROVIDES="
|
2017-10-26 11:52:52 +00:00
|
|
|
enet$secondaryArchSuffix = $portVersion
|
2020-01-02 18:23:33 +00:00
|
|
|
lib:libenet$secondaryArchSuffix = 7.0.2 compat >= 7
|
2013-12-09 19:38:44 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku$secondaryArchSuffix
|
2013-12-09 19:38:44 +00:00
|
|
|
"
|
2016-12-17 16:29:38 +00:00
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
enet${secondaryArchSuffix}_devel = $portVersion
|
2020-01-02 18:23:33 +00:00
|
|
|
devel:libenet$secondaryArchSuffix = 7.0.2 compat >= 7
|
2016-12-17 16:29:38 +00:00
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
enet$secondaryArchSuffix == $portVersion base
|
|
|
|
"
|
|
|
|
|
2013-12-09 19:38:44 +00:00
|
|
|
BUILD_REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku${secondaryArchSuffix}_devel
|
2013-12-09 19:38:44 +00:00
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:aclocal
|
|
|
|
cmd:autoreconf
|
2017-10-26 11:52:52 +00:00
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:ld$secondaryArchSuffix
|
2013-12-09 19:38:44 +00:00
|
|
|
cmd:libtoolize
|
|
|
|
cmd:make
|
|
|
|
cmd:sed
|
|
|
|
"
|
2010-09-26 18:54:28 +00:00
|
|
|
|
2013-03-29 16:31:03 +00:00
|
|
|
BUILD()
|
|
|
|
{
|
2017-10-26 11:52:52 +00:00
|
|
|
autoreconf -fi
|
2013-12-09 22:59:11 +00:00
|
|
|
runConfigure ./configure
|
2017-10-26 11:52:52 +00:00
|
|
|
make $jobArgs
|
2010-09-26 18:54:28 +00:00
|
|
|
}
|
|
|
|
|
2013-03-29 16:31:03 +00:00
|
|
|
INSTALL()
|
|
|
|
{
|
2010-09-26 18:54:28 +00:00
|
|
|
make install
|
2017-10-26 11:52:52 +00:00
|
|
|
|
2020-01-02 18:23:33 +00:00
|
|
|
rm $libDir/libenet.la $libDir/libenet.a
|
2017-10-26 11:52:52 +00:00
|
|
|
|
2013-12-09 19:38:44 +00:00
|
|
|
prepareInstalledDevelLibs libenet
|
2017-10-26 11:52:52 +00:00
|
|
|
fixPkgconfig
|
2013-12-09 19:38:44 +00:00
|
|
|
|
|
|
|
# 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
|
2010-09-26 18:54:28 +00:00
|
|
|
}
|