summaryrefslogtreecommitdiff
path: root/security/ap-modsecurity2/options.mk
blob: 6d0f9e2b10cfb90a5051d3b1193ed32f23bc4991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: options.mk,v 1.3 2008/10/12 12:50:17 adrianp Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.ap-modsecurity2

PKG_SUPPORTED_OPTIONS=	curl

.include "../../mk/bsd.options.mk"

###
### Bring in support for libxml2
###
.if !empty(PKG_OPTIONS:Mxml)
.  include "../../textproc/libxml2/buildlink3.mk"
CONFIGURE_ARGS+=	--with-libxml
MESSAGE_SRC+=		${WRKDIR}/.MESSAGE_SRC.xml
.else
CONFIGURE_ARGS+=	--without-libxml
.endif

###
### Bring in support for curl
###
.if !empty(PKG_OPTIONS:Mcurl)
.  include "../../www/curl/buildlink3.mk"
CONFIGURE_ARGS+=	--with-curl=${PREFIX}/bin/curl
.else
CONFIGURE_ARGS+=	--without-curl
.endif