Lines 1-7
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= libevhtp |
3 |
PORTNAME= libevhtp |
4 |
PORTVERSION= 1.2.10 |
4 |
PORTVERSION= 1.2.11 |
5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
6 |
|
6 |
|
7 |
MAINTAINER= ultima1252@gmail.com |
7 |
MAINTAINER= ultima1252@gmail.com |
Lines 14-29
Link Here
|
14 |
|
14 |
|
15 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= ellzey |
16 |
GH_ACCOUNT= ellzey |
17 |
GH_TAGNAME= ba4c44e |
|
|
18 |
|
17 |
|
19 |
USES= cmake:outsource |
18 |
USES= cmake:outsource |
20 |
USE_LDCONFIG= yes |
19 |
USE_LDCONFIG= yes |
21 |
CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \ |
20 |
CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \ |
22 |
-DCMAKE_LIBRARY_PATH:PATH=lib/event2 |
21 |
-DCMAKE_LIBRARY_PATH:PATH=lib/event2 |
23 |
CMAKE_BUILD_TYPE= Release |
|
|
24 |
|
22 |
|
25 |
OPTIONS_DEFINE= EVHTP_DISABLE_SSL EVHTP_DISABLE_EVTHR EVHTP_DISABLE_REGEX \ |
23 |
OPTIONS_DEFINE= EVHTP_DISABLE_SSL EVHTP_DISABLE_EVTHR EVHTP_DISABLE_REGEX \ |
26 |
EVHTP_BUILD_SHARED EVHTP_USE_DEFER_ACCEPT |
24 |
EVHTP_BUILD_SHARED EVHTP_USE_DEFER_ACCEPT DEBUG |
27 |
EVHTP_DISABLE_SSL_DESC= Disable ssl support |
25 |
EVHTP_DISABLE_SSL_DESC= Disable ssl support |
28 |
|
26 |
|
29 |
EVHTP_DISABLE_SSL_CMAKE_ON= -DEVHTP_DISABLE_SSL:STRING=ON |
27 |
EVHTP_DISABLE_SSL_CMAKE_ON= -DEVHTP_DISABLE_SSL:STRING=ON |
Lines 40-53
Link Here
|
40 |
EVHTP_USE_DEFER_ACCEPT_DESC= Enable TCP_DEFER_ACCEPT |
38 |
EVHTP_USE_DEFER_ACCEPT_DESC= Enable TCP_DEFER_ACCEPT |
41 |
EVHTP_USE_DEFER_ACCEPT_CMAKE_ON= -DEVHTP_USE_DEFER_ACCEPT:STRING=ON |
39 |
EVHTP_USE_DEFER_ACCEPT_CMAKE_ON= -DEVHTP_USE_DEFER_ACCEPT:STRING=ON |
42 |
EVHTP_USE_DEFER_ACCEPT_CMAKE_OFF= -DEVHTP_USE_DEFER_ACCEPT:STRING=OFF |
40 |
EVHTP_USE_DEFER_ACCEPT_CMAKE_OFF= -DEVHTP_USE_DEFER_ACCEPT:STRING=OFF |
|
|
41 |
DEBUG_CMAKE_BUILD_TYPE_ON= Debug |
42 |
DEBUG_CMAKE_BUILD_TYPE_OFF= Release |
43 |
|
43 |
|
44 |
OPTIONS_DEFAULT= EVHTP_BUILD_SHARED |
44 |
OPTIONS_DEFAULT= EVHTP_BUILD_SHARED |
45 |
|
45 |
|
46 |
.include <bsd.port.options.mk> |
46 |
.include <bsd.port.options.mk> |
47 |
|
47 |
|
|
|
48 |
post-patch: |
49 |
${REINPLACE_CMD} 's/\/evhtp//' ${WRKSRC}/evhtp.pc.in |
50 |
${REINPLACE_CMD} 's/INCLUDE_INSTALL_DIR}\/evhtp/INCLUDE_INSTALL_DIR}/ ; s/PATCH_VERSION [0-9]*/PATCH_VERSION ${PORTVERSION:S/1.2.//}/' \ |
51 |
${WRKSRC}/CMakeLists.txt |
52 |
|
48 |
PLIST_FILES= include/evhtp.h \ |
53 |
PLIST_FILES= include/evhtp.h \ |
49 |
include/evhtp-config.h \ |
54 |
include/evhtp-config.h \ |
50 |
include/htparse.h |
55 |
include/htparse.h \ |
|
|
56 |
lib/pkgconfig/evhtp.pc |
51 |
|
57 |
|
52 |
.if !exists(${LOCALBASE}/include/onigposix.h) && !${PORT_OPTIONS:MEVHTP_DISABLE_REGEX} |
58 |
.if !exists(${LOCALBASE}/include/onigposix.h) && !${PORT_OPTIONS:MEVHTP_DISABLE_REGEX} |
53 |
PLIST_FILES+= include/onigposix.h |
59 |
PLIST_FILES+= include/onigposix.h |
Lines 58-64
Link Here
|
58 |
.endif |
64 |
.endif |
59 |
|
65 |
|
60 |
.if ${PORT_OPTIONS:MEVHTP_BUILD_SHARED} |
66 |
.if ${PORT_OPTIONS:MEVHTP_BUILD_SHARED} |
61 |
PLIST_FILES+= lib/libevhtp.so |
67 |
PLIST_FILES+= lib/libevhtp.so \ |
|
|
68 |
lib/libevhtp.so.${PORTVERSION} |
62 |
.else |
69 |
.else |
63 |
PLIST_FILES+= lib/libevhtp.a |
70 |
PLIST_FILES+= lib/libevhtp.a |
64 |
.endif |
71 |
.endif |