pkgsrc/devel/libevent/builtin.mk
tnn d90107491a Update to libevent-1.4.3.
1.4.3-stable:
1.4.2-rc:
* make Solaris event subsystems more reliable; from W.C.A. Wijngaards
* event_base_get_method(); from Springande Ulv
* fix HTTP/1.1 chunk formatting; from "propanbutan"
* allow 64-bit content lengths; from Scott Lamb
* and more...
1.4.1-beta:
* fixed some memory leaks and other misc cleanup; from Christopher Layne,
  Scott Lamb and Charles Kerr
* introduced event_reinit to deal with fork()
* improved efficiency of generated RPC structure
* performance improvements to Win32 backend
* and many more...
1.4.0-beta:
* a new RPC subsytem for writing distributed clients and servers
* almost everything is documented via Doxygen now
* many fixes and improvements to evdns and evhttp
* libevent now builds two additional libraries: libevent_core (containing only
  the event core) and libevent_extras (contained evdns, evhttp and evrpc)
* performance improvements due to using a heap instead of red-black trees for
  timeouts
* Solaris' event ports are better supported
1.3e:
* Fix compilation on Solaris; from Magne Mahre
* Add a "Date" header to HTTP responses when it's missing, as required by
  HTTP 1.1. Original Patch from Ralph Moritz.
* Fix a memory leak in which failed HTTP connections whould not free the
  request object.
* Fix a memory leak in the DNS server.
* Handle NULL timeouts correctly on Solaris; from Trond Norbye
* Recalculate pending events properly when reallocating event array on
  Solaris; from Trond Norbye
2008-04-22 17:16:54 +00:00

113 lines
3.6 KiB
Makefile

# $NetBSD: builtin.mk,v 1.7 2008/04/22 17:16:54 tnn Exp $
BUILTIN_PKG:= libevent
BUILTIN_FIND_FILES_VAR:= H_LIBEVENT
BUILTIN_FIND_FILES.H_LIBEVENT= /usr/include/event.h
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.libevent)
IS_BUILTIN.libevent= no
. if empty(H_LIBEVENT:M__nonexistent__) && empty(H_LIBEVENT:M${LOCALBASE}/*)
IS_BUILTIN.libevent= yes
. endif
.endif # IS_BUILTIN.libevent
MAKEVARS+= IS_BUILTIN.libevent
###
### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
### a package name to represent the built-in package.
###
.if !defined(BUILTIN_PKG.libevent) && \
!empty(IS_BUILTIN.libevent:M[yY][eE][sS]) && \
empty(H_LIBEVENT:M__nonexistent__)
# libevent>=1.3: bufferevent_base_set added
_BLTN_EVENT_13!= \
${GREP} -c bufferevent_base_set ${H_LIBEVENT} || ${TRUE}
# libevent>=1.2: evtag_*, event_base_free added
_BLTN_EVENT_12!= \
${GREP} -c evtag_ ${H_LIBEVENT} || ${TRUE}
# libevent>=1.1b: evbuffer_add_vprintf added
_BLTN_EVENT_11b!= \
${GREP} -c evbuffer_add_vprintf ${H_LIBEVENT} || ${TRUE}
# libevent>=1.0d: evbuffer_readline added
_BLTN_EVENT_10d!= \
${GREP} -c event_base_loopexit ${H_LIBEVENT} || ${TRUE}
# libevent>=1.0c: event_set_log_callback, event_base_loopexit and
# event_get_{version,method} added
_BLTN_EVENT_10c!= \
${GREP} -c event_base_loopexit ${H_LIBEVENT} || ${TRUE}
# libevent>=1.0: event_base_* and event_priority_* added
_BLTN_EVENT_10!= \
${GREP} -c event_base_ ${H_LIBEVENT} || ${TRUE}
# libevent>=0.9: evbuffer_{expand,remove} added
_BLTN_EVENT_09!= \
${GREP} -c evbuffer_expand ${H_LIBEVENT} || ${TRUE}
# libevent>=0.8: buffering functions added
_BLTN_EVENT_08!= \
${GREP} -c evbuffer ${H_LIBEVENT} || ${TRUE}
# libevent>=0.7b: WIN32 support added
_BLTN_EVENT_07b!= \
${GREP} -c WIN32 ${H_LIBEVENT} || ${TRUE}
# libevent>=0.6: evtimer_* added
_BLTN_EVENT_06!= \
${GREP} -c evtimer_ ${H_LIBEVENT} || ${TRUE}
. if ${_BLTN_EVENT_13} == "1"
BUILTIN_VERSION.libevent= 1.3
. elif ${_BLTN_EVENT_12} == "1"
BUILTIN_VERSION.libevent= 1.2
. elif ${_BLTN_EVENT_11b} == "1"
BUILTIN_VERSION.libevent= 1.1b
. elif ${_BLTN_EVENT_10d} == "1"
BUILTIN_VERSION.libevent= 1.0d
. elif ${_BLTN_EVENT_10c} == "1"
BUILTIN_VERSION.libevent= 1.0c
. elif ${_BLTN_EVENT_10} == "1"
BUILTIN_VERSION.libevent= 1.0
. elif ${_BLTN_EVENT_09} == "1"
BUILTIN_VERSION.libevent= 0.9
. elif ${_BLTN_EVENT_08} == "1"
BUILTIN_VERSION.libevent= 0.8
. elif ${_BLTN_EVENT_07b} == "1"
BUILTIN_VERSION.libevent= 0.7b
. elif ${_BLTN_EVENT_06} == "1"
BUILTIN_VERSION.libevent= 0.6
. else
BUILTIN_VERSION.libevent= 0.5
. endif
BUILTIN_PKG.libevent= libevent-${BUILTIN_VERSION.libevent}
.endif
MAKEVARS+= BUILTIN_PKG.libevent
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.libevent)
. if ${PREFER.libevent} == "pkgsrc"
USE_BUILTIN.libevent= no
. else
USE_BUILTIN.libevent= ${IS_BUILTIN.libevent}
. if defined(BUILTIN_PKG.libevent) && \
!empty(IS_BUILTIN.libevent:M[yY][eE][sS])
USE_BUILTIN.libevent= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.libevent}
. if !empty(USE_BUILTIN.libevent:M[yY][eE][sS])
USE_BUILTIN.libevent!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libevent:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
. endif # PREFER.libevent
.endif
MAKEVARS+= USE_BUILTIN.libevent