2014-08-19 12:40:58 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libevhtp
|
2015-12-03 15:57:25 +01:00
|
|
|
PORTVERSION= 1.2.11
|
2016-06-29 18:03:04 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
LIB_DEPENDS= libevent.so:devel/libevent2
|
2014-08-19 12:40:58 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ellzey
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-12-03 15:57:25 +01:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2016-06-29 18:03:04 +02:00
|
|
|
OPTIONS_DEFINE= SSL THREADS STATIC DEBUG
|
|
|
|
OPTIONS_DEFAULT=SSL THREADS
|
2015-12-03 15:57:25 +01:00
|
|
|
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
|
|
|
|
STATIC_CMAKE_ON= -DEVHTP_BUILD_SHARED:STRING=OFF
|
|
|
|
STATIC_CMAKE_OFF= -DEVHTP_BUILD_SHARED:STRING=ON
|
|
|
|
|
|
|
|
post-patch:
|
2016-01-12 20:55:47 +01:00
|
|
|
@${REINPLACE_CMD} '/HAS_SYS_ONIG onig/d ; s/lib\/pkgconfig/libdata\/pkgconfig/ ; s/PATCH_VERSION [0-9]*/PATCH_VERSION ${PORTVERSION:S/1.2.//}/' \
|
2015-12-03 15:57:25 +01:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
2016-01-12 20:55:47 +01:00
|
|
|
@${REINPLACE_CMD} 's/<evhtp-config.h>/"evhtp-config.h"/ ; s/<evthr.h>/"evthr.h"/ ; s/<htparse.h>/"htparse.h"/' \
|
|
|
|
${WRKSRC}/evhtp.h ${WRKSRC}/evthr.h
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${REINPLACE_CMD} 's/<onigposix.h>/"onigposix.h"/' \
|
|
|
|
${WRKSRC}/evhtp.h
|
2014-08-19 12:40:58 +02:00
|
|
|
|
2014-09-05 23:23:29 +02:00
|
|
|
.include <bsd.port.mk>
|