2014-08-19 12:40:58 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libevhtp
|
2015-10-30 03:25:40 +01:00
|
|
|
PORTVERSION= 1.2.10
|
2014-08-19 12:40:58 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2015-10-29 03:36:27 +01:00
|
|
|
MAINTAINER= ultima1252@gmail.com
|
2014-08-19 12:40:58 +02:00
|
|
|
COMMENT= Flexible replacement for libevent httpd API
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ellzey
|
2015-10-30 03:25:40 +01:00
|
|
|
GH_TAGNAME= ba4c44e
|
2014-08-19 12:40:58 +02:00
|
|
|
|
|
|
|
USES= cmake:outsource
|
2015-10-30 03:25:40 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-08-19 12:40:58 +02:00
|
|
|
CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \
|
|
|
|
-DCMAKE_LIBRARY_PATH:PATH=lib/event2
|
|
|
|
CMAKE_BUILD_TYPE= Release
|
|
|
|
|
2014-09-05 23:23:29 +02:00
|
|
|
OPTIONS_DEFINE= EVHTP_DISABLE_SSL EVHTP_DISABLE_EVTHR EVHTP_DISABLE_REGEX \
|
|
|
|
EVHTP_BUILD_SHARED EVHTP_USE_DEFER_ACCEPT
|
|
|
|
EVHTP_DISABLE_SSL_DESC= Disable ssl support
|
|
|
|
|
|
|
|
EVHTP_DISABLE_SSL_CMAKE_ON= -DEVHTP_DISABLE_SSL:STRING=ON
|
|
|
|
EVHTP_DISABLE_SSL_CMAKE_OFF= -DEVHTP_DISABLE_SSL:STRING=OFF
|
|
|
|
EVHTP_DISABLE_EVTHR_DESC= Disable evthread support
|
|
|
|
EVHTP_DISABLE_EVTHR_CMAKE_ON= -DEVHTP_DISABLE_EVTHR:STRING=ON
|
|
|
|
EVHTP_DISABLE_EVTHR_CMAKE_OFF= -DEVHTP_DISABLE_EVTHR:STRING=OFF
|
|
|
|
EVHTP_DISABLE_REGEX_DESC= Disable regex support
|
|
|
|
EVHTP_DISABLE_REGEX_CMAKE_ON= -DEVHTP_DISABLE_REGEX:STRING=ON
|
|
|
|
EVHTP_DISABLE_REGEX_CMAKE_OFF= -DEVHTP_DISABLE_REGEX:STRING=OFF
|
|
|
|
EVHTP_BUILD_SHARED_DESC= Build shared library too
|
|
|
|
EVHTP_BUILD_SHARED_CMAKE_ON= -DEVHTP_BUILD_SHARED:STRING=ON
|
|
|
|
EVHTP_BUILD_SHARED_CMAKE_OFF= -DEVHTP_BUILD_SHARED:STRING=OFF
|
|
|
|
EVHTP_USE_DEFER_ACCEPT_DESC= Enable TCP_DEFER_ACCEPT
|
|
|
|
EVHTP_USE_DEFER_ACCEPT_CMAKE_ON= -DEVHTP_USE_DEFER_ACCEPT:STRING=ON
|
|
|
|
EVHTP_USE_DEFER_ACCEPT_CMAKE_OFF= -DEVHTP_USE_DEFER_ACCEPT:STRING=OFF
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= EVHTP_BUILD_SHARED
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2015-10-30 03:25:40 +01:00
|
|
|
PLIST_FILES= include/evhtp.h \
|
2014-08-19 12:40:58 +02:00
|
|
|
include/evhtp-config.h \
|
2015-02-16 10:10:26 +01:00
|
|
|
include/htparse.h
|
|
|
|
|
2015-10-30 03:25:40 +01:00
|
|
|
.if !exists(${LOCALBASE}/include/onigposix.h) && !${PORT_OPTIONS:MEVHTP_DISABLE_REGEX}
|
2015-02-16 10:10:26 +01:00
|
|
|
PLIST_FILES+= include/onigposix.h
|
|
|
|
.endif
|
2014-08-19 12:40:58 +02:00
|
|
|
|
2015-10-30 03:25:40 +01:00
|
|
|
.if !${PORT_OPTIONS:MEVHTP_DISABLE_EVTHR}
|
|
|
|
PLIST_FILES+= include/evthr.h
|
|
|
|
.endif
|
|
|
|
|
2014-09-05 23:23:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MEVHTP_BUILD_SHARED}
|
|
|
|
PLIST_FILES+= lib/libevhtp.so
|
|
|
|
.else
|
|
|
|
PLIST_FILES+= lib/libevhtp.a
|
2014-08-19 12:40:58 +02:00
|
|
|
.endif
|
|
|
|
|
2014-09-05 23:23:29 +02:00
|
|
|
.include <bsd.port.mk>
|