Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / bind99 / options.mk
blob58b36ed577b4d8a459e888e97c4eeb8132732356
1 # $NetBSD: options.mk,v 1.5 2013/02/09 00:14:34 pettai Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.bind99
4 PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
5 PKG_SUPPORTED_OPTIONS+= inet6 threads readline mysql pgsql ldap dlz-filesystem
6 PKG_SUPPORTED_OPTIONS+= rrl
7 PKG_SUGGESTED_OPTIONS+= readline
9 PTHREAD_OPTS+= native
10 .include "../../mk/pthread.buildlink3.mk"
12 .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
13 !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \
14 !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \
15 !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \
16 !empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
17 # don't touch PKG_SUGGESTED_OPTIONS
18 .else
19 PKG_SUGGESTED_OPTIONS+= threads
20 .endif
22 .if empty(MISSING_FEATURES:Minet6)
23 PKG_SUGGESTED_OPTIONS+= inet6
24 .endif
26 .include "../../mk/bsd.options.mk"
28 ###
29 ### The mysql pgsql ldap dlz-filesystem options are all for BIND
30 ### DLZ (Dynamically Loadable Zones) functionality
31 ###
32 ### NOTE: bdb is excluded on purpose as pkgsrc does not contain
33 ### a bdb v4.1 or 4.2 package which is what BIND needs.
34 ### The majority of these are compile tested only
35 ###
37 .if !empty(PKG_OPTIONS:Mmysql)
38 .include "../../mk/mysql.buildlink3.mk"
39 CONFIGURE_ARGS+= --with-dlz-mysql=${BUILDLINK_PREFIX.mysql-client}
40 .endif
42 .if !empty(PKG_OPTIONS:Mpgsql)
43 .include "../../mk/pgsql.buildlink3.mk"
44 CONFIGURE_ARGS+= --with-dlz-postgres=${BUILDLINK_PREFIX.${PGSQL_TYPE}}
45 CONFIGURE_ENV+= ac_cv_path_PG_CONFIG=${PREFIX}/bin/pg_config
46 .endif
48 .if !empty(PKG_OPTIONS:Mldap)
49 .include "../../databases/openldap-client/buildlink3.mk"
50 CONFIGURE_ARGS+= --with-dlz-ldap=${BUILDLINK_PREFIX.openldap-client}
51 .endif
53 .if !empty(PKG_OPTIONS:Mdlz-filesystem)
54 CONFIGURE_ARGS+= --with-dlz-filesystem
55 .endif
57 .if !empty(PKG_OPTIONS:Mrrl)
58 PATCHFILES=rl-9.9.2-P2.patch
59 PATCH_SITES=http://ss.vix.su/~vjs/
60 .endif
62 ###
63 ### The statistics server in bind99 and later needs libxml2
64 ###
65 .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
66 .include "../../textproc/libxml2/buildlink3.mk"
67 CONFIGURE_ARGS+= --with-libxml2
68 .else
69 CONFIGURE_ARGS+= --without-libxml2
70 .endif
72 ###
73 ### IPv6 support
74 ###
75 .if !empty(PKG_OPTIONS:Minet6)
76 CONFIGURE_ARGS+= --enable-ipv6
77 .else
78 CONFIGURE_ARGS+= --disable-ipv6
79 .endif
81 ###
82 ### pthreads support (also see magic above)
83 ###
84 .if !empty(PKG_OPTIONS:Mthreads)
85 PTHREAD_AUTO_VARS= yes
86 CONFIGURE_ARGS+= --enable-threads
87 .else
88 CONFIGURE_ARGS+= --disable-threads
89 .endif
91 ###
92 ### readline support in dig(1) and nsupdate(1).
93 ###
94 .if !empty(PKG_OPTIONS:Mreadline)
95 .include "../../devel/readline/buildlink3.mk"
96 CONFIGURE_ARGS+= --with-readline
97 .else
98 CONFIGURE_ARGS+= --without-readline
99 .endif
102 ### dig(1) option +sigchase for DNSSEC signature chasing
104 .if !empty(PKG_OPTIONS:Mbind-dig-sigchase)
105 # If anything else needs to add entries to STD_CDEFINES, this will need
106 # to be changed so that the two can cooperate.
107 CONFIGURE_ENV+= STD_CDEFINES=-DDIG_SIGCHASE=1
108 .endif