Pullup ticket #2794 - requested by tez
[pkgsrc.git] / security / ap-modsecurity2 / options.mk
1 # $NetBSD: options.mk,v 1.2 2007/03/18 10:35:13 adrianp Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.ap-modsecurity2
4
5 PKG_SUPPORTED_OPTIONS=  curl
6
7 .include "../../mk/bsd.options.mk"
8
9 ###
10 ### Bring in support for libxml2
11 ###
12 .if !empty(PKG_OPTIONS:Mxml)
13 .  include "../../textproc/libxml2/buildlink3.mk"
14 CONFIGURE_ARGS+=        --with-libxml
15 MESSAGE_SRC+=           ${WRKDIR}/.MESSAGE_SRC.xml
16 .else
17 CONFIGURE_ARGS+=        --without-libxml
18 .endif
19
20 ###
21 ### Bring in support for curl
22 ###
23 .if !empty(PKG_OPTIONS:Mcurl)
24 .  include "../../www/curl/buildlink3.mk"
25 CONFIGURE_ARGS+=        --with-curl=${PREFIX}/bin/curl
26 .else
27 CONFIGURE_ARGS+=        --without-curl
28 .endif