mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
3c3af2eb37
part. - change static lib to be shared lib by default, which is required in my another ports. - about 8.4 release broken: the issue will be resolved by adding one include file. There is one line missing in 8.4 tcp.h file. PR: 193131 Submitted by: Jingfeng Yan (maintainer) MFH: 2014q3
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libevhtp
|
|
PORTVERSION= 1.2.9
|
|
PORTREVISION= 1
|
|
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 <bsd.port.options.mk>
|
|
|
|
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 <bsd.port.mk>
|