Initial import of gnome-icon-theme-extras-2.30.1:
[pkgsrc.git] / www / horde3 / options.mk
1 # $NetBSD$
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.horde
4 PKG_SUPPORTED_OPTIONS=  ldap postgresql73 postgresql74 mysql
5
6 .if !defined(PKG_OPTIONS.horde)
7 PKG_DEFAULT_OPTIONS+=   mysql
8 .endif
9 .include "../../mk/bsd.options.mk"
10
11 ###
12 ### Can't support both versions of PostgreSQL
13 ###
14 .if !empty(PKG_OPTIONS:Mpostgresql73) && !empty(PKG_OPTIONS:Mpostgresql74)
15 PKG_FAIL_REASON+=       "PostgreSQL 7.3 and 7.4 cannot both be compiled in." \
16                         "Please change ${PKG_OPTIONS_VAR} to one or the other."
17 .endif
18
19 ###
20 ### Use OpenLDAP for storing user details
21 ###
22 .if !empty(PKG_OPTIONS:Mldap)
23 .       include "../../databases/openldap/buildlink3.mk"
24 DEPENDS+=       php-ldap>=4.3.3:../../databases/php-ldap
25 .endif
26
27 ###
28 ### Use PostgreSQL v7.3 for storing user details
29 ###
30 .if !empty(PKG_OPTIONS:Mpostgresql73)
31 .       include "../../databases/postgresql73-lib/buildlink3.mk"
32 DEPENDS+=       php-pgsql>=4.3.3:../../databases/php-pgsql
33 .endif
34
35 ###
36 ### Use PostgreSQL v7.4 for storing user details
37 ###
38 .if !empty(PKG_OPTIONS:Mpostgresql74)
39 .       include "../../databases/postgresql74-lib/buildlink3.mk"
40 DEPENDS+=       php-pgsql>=4.3.3:../../databases/php-pgsql
41 .endif
42
43 ###
44 ### Use MySQL for storing user details
45 ###
46 .if !empty(PKG_OPTIONS:Mmysql)
47 .       include "../../mk/mysql.buildlink3.mk"
48 DEPENDS+=       php-mysql>=4.3.3:../../databases/php-mysql
49 .endif