blob: d64a03e6e03338afcaedf676e93593fad0df4465 (
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
|
# $NetBSD: options.mk,v 1.17 2020/06/07 22:07:04 taca Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.roundcube
PKG_OPTIONS_REQUIRED_GROUPS= db webserver
PKG_OPTIONS_GROUP.db= mysql pgsql sqlite
PKG_OPTIONS_GROUP.webserver= apache lighttpd nginx
PKG_SUPPORTED_OPTIONS= ldap iconv php-sockets gd
PKG_SUGGESTED_OPTIONS= mysql iconv php-sockets gd apache
PKG_OPTIONS_LEGACY_OPTS+= sockets:php-sockets
.include "../../mk/bsd.options.mk"
###
### Use mysql backend.
###
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql-[0-9]*:../../databases/php-pdo_mysql
.endif
###
### Use postgresql backend.
###
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql-[0-9]*:../../databases/php-pdo_pgsql
.endif
###
### Use sqlite backend.
###
.if !empty(PKG_OPTIONS:Msqlite)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite-[0-9]*:../../databases/php-pdo_sqlite
.endif
###
### Use iconv.
###
.if !empty(PKG_OPTIONS:Miconv)
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=4.3.1:../../converters/php-iconv
.endif
###
### Use apache web server
###
.if !empty(PKG_OPTIONS:Mapache)
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
BUILD_DEFS+= APACHE_USER APACHE_GROUP
.include "../../mk/apache.mk"
.endif
###
### Use lighttpd web server
###
.if !empty(PKG_OPTIONS:Mlighttpd)
DEPENDS+= lighttpd-[0-9]*:../../www/lighttpd
WWW_USER?= lighttpd
WWW_GROUP?= lighttpd
.endif
###
### Use nginx web server
###
.if !empty(PKG_OPTIONS:Mnginx)
DEPENDS+= nginx-[0-9]*:../../www/nginx
WWW_USER?= nginx
WWW_GROUP?= nginx
.endif
###
### Use OpenLDAP for storing data.
###
.if !empty(PKG_OPTIONS:Mldap)
DEPENDS+= ${PHP_PKG_PREFIX}-ldap>=4.3.1:../../databases/php-ldap
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_LDAP3-[0-9]*:../../net/pear-Net_LDAP3
.endif
###
### Use sockets, required by managesieve and password plugins.
###
.if !empty(PKG_OPTIONS:Mphp-sockets)
DEPENDS+= ${PHP_PKG_PREFIX}-sockets>=4.3.1:../../net/php-sockets
.endif
###
### Add support for gd
###
.if !empty(PKG_OPTIONS:Mgd)
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.1:../../graphics/php-gd
.endif
|