# $FreeBSD$ PORTNAME= libevhtp PORTVERSION= 1.2.11 PORTREVISION= 1 CATEGORIES= www MAINTAINER= ultima1252@gmail.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 USES= cmake:outsource USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \ -DCMAKE_LIBRARY_PATH:PATH=lib/event2 PLIST_SUB+= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= SSL THREADS REGEX STATIC DEBUG OPTIONS_DEFAULT=SSL THREADS REGEX OPTIONS_SUB= yes SSL_CMAKE_ON= -DEVHTP_DISABLE_SSL:STRING=OFF SSL_CMAKE_OFF= -DEVHTP_DISABLE_SSL:STRING=ON THREADS_CMAKE_ON= -DEVHTP_DISABLE_EVTHR:STRING=OFF THREADS_CMAKE_OFF= -DEVHTP_DISABLE_EVTHR:STRING=ON REGEX_CMAKE_ON= -DEVHTP_DISABLE_REGEX:STRING=OFF REGEX_CMAKE_OFF= -DEVHTP_DISABLE_REGEX:STRING=ON REGEX_DESC= Enable regex support STATIC_CMAKE_ON= -DEVHTP_BUILD_SHARED:STRING=OFF STATIC_CMAKE_OFF= -DEVHTP_BUILD_SHARED:STRING=ON post-patch: @${REINPLACE_CMD} '/HAS_SYS_ONIG onig/d ; s/lib\/pkgconfig/libdata\/pkgconfig/ ; s/PATCH_VERSION [0-9]*/PATCH_VERSION ${PORTVERSION:S/1.2.//}/' \ ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} 's//"evhtp-config.h"/ ; s//"evthr.h"/ ; s//"htparse.h"/' \ ${WRKSRC}/evhtp.h ${WRKSRC}/evthr.h post-build: @${REINPLACE_CMD} 's//"onigposix.h"/' \ ${WRKSRC}/evhtp.h .include