# $FreeBSD$ PORTNAME= libevhtp PORTVERSION= 1.2.9 PORTREVISION= 2 CATEGORIES= www MAINTAINER= yan_jingfeng@yahoo.com 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 GH_PROJECT= libevhtp GH_TAGNAME= ${GH_COMMIT} GH_COMMIT= 3886506 USES= cmake:outsource USE_LDCONFIG= YES CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \ -DCMAKE_LIBRARY_PATH:PATH=lib/event2 CMAKE_BUILD_TYPE= Release 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 PLIST_FILES= include/evhtp.h\ include/evhtp-config.h \ include/evthr.h \ include/htparse.h \ include/onigposix.h .if ${PORT_OPTIONS:MEVHTP_BUILD_SHARED} PLIST_FILES+= lib/libevhtp.so .else PLIST_FILES+= lib/libevhtp.a .endif .include