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 other contributors." LICENSE="BSD (3-clause)" REVISION="2" SOURCE_URI="https://github.com/libevent/libevent/releases/download/release-$portVersion-stable/libevent-$portVersion-stable.tar.gz" CHECKSUM_SHA256="92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb" SOURCE_DIR="libevent-${portVersion}-stable" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="7.0.1" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" libevent${secondaryArchSuffix} = ${portVersion} lib:libevent_2.1$secondaryArchSuffix = $libVersionCompat lib:libevent_core_2.1$secondaryArchSuffix = $libVersionCompat lib:libevent_extra_2.1$secondaryArchSuffix = $libVersionCompat lib:libevent_openssl_2.1$secondaryArchSuffix = $libVersionCompat lib:libevent_pthreads_2.1$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:libssl$secondaryArchSuffix " PROVIDES_devel=" libevent${secondaryArchSuffix}_devel = ${portVersion} cmd:event_rpcgen.py$secondaryArchSuffix devel:libevent$secondaryArchSuffix = $libVersionCompat devel:libevent_2.1$secondaryArchSuffix = $libVersionCompat devel:libevent_core$secondaryArchSuffix = $libVersionCompat devel:libevent_core_2.1$secondaryArchSuffix = $libVersionCompat devel:libevent_extra$secondaryArchSuffix = $libVersionCompat devel:libevent_extra_2.1$secondaryArchSuffix = $libVersionCompat devel:libevent_openssl$secondaryArchSuffix = $libVersionCompat devel:libevent_openssl_2.1$secondaryArchSuffix = $libVersionCompat devel:libevent_pthreads$secondaryArchSuffix = $libVersionCompat devel:libevent_pthreads_2.1$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" libevent$secondaryArchSuffix == $portVersion base cmd:python3 devel:libcrypto$secondaryArchSuffix devel:libssl$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcrypto$secondaryArchSuffix devel:libssl$secondaryArchSuffix devel:libz " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:awk cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make cmd:python3 " BUILD() { autoreconf -fi CPPFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE" \ LDFLAGS="-lbsd -lposix_error_mapper -lnetwork" \ runConfigure ./configure --disable-static make $jobArgs } INSTALL() { make install rm $libDir/libevent*.la prepareInstalledDevelLibs \ libevent \ libevent_core \ libevent_extra \ libevent_pthreads \ libevent_openssl cp .libs/libevent-*.so* \ .libs/libevent_core-*.so* \ .libs/libevent_extra-*.so* \ .libs/libevent_pthreads-*.so* \ .libs/libevent_openssl-*.so* \ $developLibDir fixPkgconfig # devel package packageEntries devel \ $binDir \ $developDir }