blob: 8c9aecc813357cd7dcc45081570437bf127cf24f (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# $NetBSD: options.mk,v 1.1 2010/07/11 12:18:55 obache Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cherokee
PKG_SUPPORTED_OPTIONS+= geoip ffmpeg inet6 ldap mysql pam ssl threads
PKG_SUGGESTED_OPTIONS+= inet6 pam ssl threads
.include "../../mk/bsd.options.mk"
PLIST_VARS+= geoip ldap mysql pam ssl
###
### Threading support.
###
.if !empty(PKG_OPTIONS:Mthreads)
.include "../../mk/pthread.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pthread
.else
CONFIGURE_ARGS+= --disable-pthread
.endif
###
### IPv6 support.
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### SSL support.
###
.if !empty(PKG_OPTIONS:Mssl)
PLIST.ssl= yes
CONFIGURE_ARGS+= --with-libssl=${SSLBASE}
.include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-libssl
.endif
###
### Allow using LDAP for "basic" authentication.
###
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
PLIST.ldap= yes
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
.else
CONFIGURE_ARGS+= --without-ldap
.endif
###
### Allow using MySQL for virtual host configuration.
###
.if !empty(PKG_OPTIONS:Mmysql)
.include "../../mk/mysql.buildlink3.mk"
PLIST.mysql= yes
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
.else
CONFIGURE_ARGS+= --without-mysql
.endif
###
### GeoIP support
###
.if !empty(PKG_OPTIONS:Mgeoip)
PLIST.geoip= yes
CONFIGURE_ARGS+= --with-geoip=${BUILDLINK_PREFIX.GeoIP}
.include "../../net/GeoIP/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-geoip
.endif
###
### FFMpeg support
###
.if !empty(PKG_OPTIONS:Mffmpeg)
PLIST.ffmpeg= yes
CONFIGURE_ARGS+= --with-ffmpeg=${BUILDLINK_PREFIX.ffmpeg}
.include "../../multimedia/ffmpeg/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-ffmpeg
.endif
###
### PAM support
###
.if !empty(PKG_OPTIONS:Mpam)
PLIST.pam= yes
.include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam
.else
CONFIGURE_ARGS+= --disable-pam
.endif
|