Files
haikuports/dev-libs/libevent/libevent-1.4.14b.recipe

91 lines
2.4 KiB
Bash

SUMMARY="An event notification library"
DESCRIPTION="The libevent API provides a mechanism to execute a callback \
function when a specific event occurs on a file descriptor or after a timeout \
has been reached. Furthermore, libevent also support callbacks due to signals \
or regular timeouts.
libevent is meant to replace the event loop found in event driven network \
servers. An application just needs to call event_dispatch() and then add or \
remove events dynamically without having to change the event loop."
HOMEPAGE="http://www.libevent.org/"
COPYRIGHT="2000-2007 Niels Provos, 2005 Nick Mathewson, and others"
LICENSE="BSD (3-clause)"
REVISION="3"
SOURCE_URI="http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz"
CHECKSUM_SHA256="afa61b476a222ba43fc7cca2d24849ab0bbd940124400cb699915d3c60e46301"
SOURCE_DIR="libevent-${portVersion}-stable"
PATCHES="libevent-1.4.14b.patch"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="!x86"
PROVIDES="
libevent$secondaryArchSuffix = $portVersion
lib:libevent$secondaryArchSuffix = 2.2.0 compat >= 2
lib:libevent_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
lib:libevent_core$secondaryArchSuffix = 2.2.0 compat >= 2
lib:libevent_core_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
lib:libevent_extra$secondaryArchSuffix = 2.2.0 compat >= 2
lib:libevent_extra_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libevent${secondaryArchSuffix}_devel = $portVersion
cmd:event_rpcgen.py
devel:libevent_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
devel:libevent_core_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
devel:libevent_extra_1.4$secondaryArchSuffix = 2.2.0 compat >= 2
"
REQUIRES_devel="
libevent$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in
sed -i 's/TESTS = $(top_srcdir)/TESTS = {$sourceDir}/g' test/Makefile.am
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/*.la
prepareInstalledDevelLibs \
libevent-1.4 \
libevent_core-1.4 \
libevent_extra-1.4
fixPkgconfig
# devel package
packageEntries devel \
$binDir \
$developDir \
$manDir
}