mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Updated to libevent-2.0.21. This is a WIP, still has some POLICY WARNINGS to fix up.
This commit is contained in:
92
dev-libs/libevent/libevent-2.0.21.recipe
Normal file
92
dev-libs/libevent/libevent-2.0.21.recipe
Normal file
@@ -0,0 +1,92 @@
|
||||
SUMMARY="Libevent"
|
||||
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/"
|
||||
SRC_URI="https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
|
||||
CHECKSUM_MD5="b2405cc9ebf264aa47ff615d9de527a2"
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="2000-2007 Niels Provos, 2005 Nick Mathewson, and other contributors."
|
||||
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
cmd:event_rpcgen.py
|
||||
libevent$secondaryArchSuffix = $portVersion
|
||||
lib:libevent$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
lib:libevent_2.0 = 5 compat >= 5
|
||||
lib:libevent_2.0 = 5.1.9 compat >= 5
|
||||
lib:libevent_core_2.0 = 5 compat >= 5
|
||||
lib:libevent_core_2.0 = 5.1.9 compat >= 5
|
||||
lib:libevent_core
|
||||
lib:libevent_extra_2.0 = 5 compat >= 5
|
||||
lib:libevent_extra_2.0 = 5.1.9 compat >= 5
|
||||
lib:libevent_extra
|
||||
lib:libevent_pthreads_2.0 = 5 compat >= 5
|
||||
lib:libevent_pthreads_2.0 = 5.1.9 compat >= 5
|
||||
lib:libevent_pthreads
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
"
|
||||
SOURCE_DIR="$portVersionedName-stable"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in
|
||||
sed -i 's/TESTS = $(top_srcdir)/TESTS = {$sourceDir}/g' test/Makefile.am
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
prepareInstalledDevelLibs libevent
|
||||
fixPkgconfig
|
||||
|
||||
|
||||
ls
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libevent_devel = $portVersion compat >= 2
|
||||
devel:libevent = $portVersion compat >= 2
|
||||
devel:libevent_core.a = 5 compat >= 5
|
||||
devel:libevent_core.la = 5.1.9 compat >= 5
|
||||
devel:libevent_extra.a = 5 compat >= 5
|
||||
devel:libevent_extra.la = 5.1.9 compat >= 5
|
||||
devel:libevent_pthreads.a = 5 compat >= 5
|
||||
devel:libevent_pthreads.la = 5.1.9 compat >= 5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libevent == $portVersion base
|
||||
"
|
||||
13
dev-libs/libevent/patches/libevent-2.0.21.patch
Normal file
13
dev-libs/libevent/patches/libevent-2.0.21.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- configure.in 2012-11-17 22:34:13.040894464 -0800
|
||||
+++ haiku/configure.in 2013-08-28 15:07:32.000000000 -0700
|
||||
@@ -104,8 +104,8 @@
|
||||
AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"])
|
||||
|
||||
dnl Checks for libraries.
|
||||
-AC_SEARCH_LIBS([inet_ntoa], [nsl])
|
||||
-AC_SEARCH_LIBS([socket], [socket])
|
||||
+AC_SEARCH_LIBS([inet_ntoa], [nsl network])
|
||||
+AC_SEARCH_LIBS([socket], [socket network])
|
||||
AC_SEARCH_LIBS([inet_aton], [resolv])
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt])
|
||||
AC_SEARCH_LIBS([sendfile], [sendfile])
|
||||
Reference in New Issue
Block a user