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
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
19 PKG_SUGGESTED_OPTIONS
+= threads
22 .if empty
(MISSING_FEATURES
:Minet6
)
23 PKG_SUGGESTED_OPTIONS
+= inet6
26 .
include "../../mk/bsd.options.mk"
29 ### The mysql pgsql ldap dlz-filesystem options are all for BIND
30 ### DLZ (Dynamically Loadable Zones) functionality
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
37 .if
!empty
(PKG_OPTIONS
:Mmysql
)
38 .
include "../../mk/mysql.buildlink3.mk"
39 CONFIGURE_ARGS
+= --with-dlz-mysql
=${BUILDLINK_PREFIX.mysql-client
}
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
48 .if
!empty
(PKG_OPTIONS
:Mldap
)
49 .
include "../../databases/openldap-client/buildlink3.mk"
50 CONFIGURE_ARGS
+= --with-dlz-ldap
=${BUILDLINK_PREFIX.openldap-client
}
53 .if
!empty
(PKG_OPTIONS
:Mdlz-filesystem
)
54 CONFIGURE_ARGS
+= --with-dlz-filesystem
57 .if
!empty
(PKG_OPTIONS
:Mrrl
)
58 PATCHFILES
=rl-9.9
.2-P2.patch
59 PATCH_SITES
=http
://ss.vix.su
/~vjs
/
63 ### The statistics server in bind99 and later needs libxml2
65 .if
!empty
(PKG_OPTIONS
:Mbind-xml-statistics-server
)
66 .
include "../../textproc/libxml2/buildlink3.mk"
67 CONFIGURE_ARGS
+= --with-libxml2
69 CONFIGURE_ARGS
+= --without-libxml2
75 .if
!empty
(PKG_OPTIONS
:Minet6
)
76 CONFIGURE_ARGS
+= --enable-ipv6
78 CONFIGURE_ARGS
+= --disable-ipv6
82 ### pthreads support (also see magic above)
84 .if
!empty
(PKG_OPTIONS
:Mthreads
)
85 PTHREAD_AUTO_VARS
= yes
86 CONFIGURE_ARGS
+= --enable-threads
88 CONFIGURE_ARGS
+= --disable-threads
92 ### readline support in dig(1) and nsupdate(1).
94 .if
!empty
(PKG_OPTIONS
:Mreadline
)
95 .
include "../../devel/readline/buildlink3.mk"
96 CONFIGURE_ARGS
+= --with-readline
98 CONFIGURE_ARGS
+= --without-readline
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