| @@ -1,17 +1,18 @@ | | | @@ -1,17 +1,18 @@ |
1 | # $NetBSD: options.mk,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2015/02/13 13:50:32 fhajny Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.bind910 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.bind910 |
4 | PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server | | 4 | PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server |
| | | 5 | PKG_SUPPORTED_OPTIONS+= bind-json-statistics-server |
5 | PKG_SUPPORTED_OPTIONS+= inet6 threads readline mysql pgsql ldap dlz-filesystem | | 6 | PKG_SUPPORTED_OPTIONS+= inet6 threads readline mysql pgsql ldap dlz-filesystem |
6 | PKG_SUPPORTED_OPTIONS+= rrl | | 7 | PKG_SUPPORTED_OPTIONS+= rrl |
7 | PKG_SUGGESTED_OPTIONS+= readline | | 8 | PKG_SUGGESTED_OPTIONS+= readline |
8 | | | 9 | |
9 | PTHREAD_OPTS+= native | | 10 | PTHREAD_OPTS+= native |
10 | .include "../../mk/pthread.buildlink3.mk" | | 11 | .include "../../mk/pthread.buildlink3.mk" |
11 | | | 12 | |
12 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \ | | 13 | .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \ |
13 | !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \ | | 14 | !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \ |
14 | !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \ | | 15 | !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \ |
15 | !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \ | | 16 | !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \ |
16 | !empty(MACHINE_PLATFORM:MNetBSD-*-m68k) | | 17 | !empty(MACHINE_PLATFORM:MNetBSD-*-m68k) |
17 | # don't touch PKG_SUGGESTED_OPTIONS | | 18 | # don't touch PKG_SUGGESTED_OPTIONS |
| @@ -59,26 +60,36 @@ CONFIGURE_ARGS+= --enable-rrl | | | @@ -59,26 +60,36 @@ CONFIGURE_ARGS+= --enable-rrl |
59 | .endif | | 60 | .endif |
60 | | | 61 | |
61 | ### | | 62 | ### |
62 | ### The statistics server in bind99 and later needs libxml2 | | 63 | ### The statistics server in bind99 and later needs libxml2 |
63 | ### | | 64 | ### |
64 | .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server) | | 65 | .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server) |
65 | .include "../../textproc/libxml2/buildlink3.mk" | | 66 | .include "../../textproc/libxml2/buildlink3.mk" |
66 | CONFIGURE_ARGS+= --with-libxml2 | | 67 | CONFIGURE_ARGS+= --with-libxml2 |
67 | .else | | 68 | .else |
68 | CONFIGURE_ARGS+= --without-libxml2 | | 69 | CONFIGURE_ARGS+= --without-libxml2 |
69 | .endif | | 70 | .endif |
70 | | | 71 | |
71 | ### | | 72 | ### |
| | | 73 | ### The statistics server in bind910 and later supports json |
| | | 74 | ### |
| | | 75 | .if !empty(PKG_OPTIONS:Mbind-json-statistics-server) |
| | | 76 | .include "../../textproc/json-c/buildlink3.mk" |
| | | 77 | CONFIGURE_ARGS+= --with-libjson |
| | | 78 | .else |
| | | 79 | CONFIGURE_ARGS+= --without-libjson |
| | | 80 | .endif |
| | | 81 | |
| | | 82 | ### |
72 | ### IPv6 support | | 83 | ### IPv6 support |
73 | ### | | 84 | ### |
74 | .if !empty(PKG_OPTIONS:Minet6) | | 85 | .if !empty(PKG_OPTIONS:Minet6) |
75 | CONFIGURE_ARGS+= --enable-ipv6 | | 86 | CONFIGURE_ARGS+= --enable-ipv6 |
76 | .else | | 87 | .else |
77 | CONFIGURE_ARGS+= --disable-ipv6 | | 88 | CONFIGURE_ARGS+= --disable-ipv6 |
78 | .endif | | 89 | .endif |
79 | | | 90 | |
80 | ### | | 91 | ### |
81 | ### pthreads support (also see magic above) | | 92 | ### pthreads support (also see magic above) |
82 | ### | | 93 | ### |
83 | .if !empty(PKG_OPTIONS:Mthreads) | | 94 | .if !empty(PKG_OPTIONS:Mthreads) |
84 | PTHREAD_AUTO_VARS= yes | | 95 | PTHREAD_AUTO_VARS= yes |