# $NetBSD: options.mk,v 1.1.1.1 2009/01/04 00:21:36 adrianp Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.bind96 PKG_SUPPORTED_OPTIONS= bind-xml-statistics-server inet6 threads PKG_SUPPORTED_OPTIONS+= mysql pgsql ldap dlz-filesystem .include "../../mk/pthread.buildlink3.mk" .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \ !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \ !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \ !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \ !empty(MACHINE_PLATFORM:MNetBSD-*-m68k) # don't touch PKG_SUGGESTED_OPTIONS .else PKG_SUGGESTED_OPTIONS+= threads .endif .include "../../mk/bsd.options.mk" ### ### The mysql pgsql ldap dlz-filesystem options are all for BIND ### DLZ (Dynamically Loadable Zones) functionality ### ### NOTE: bdb is excluded on purpose as pkgsrc does not contain ### a bdb v4.1 or 4.2 package which is what BIND needs. ### The majority of these are compile tested only ### .if !empty(PKG_OPTIONS:Mmysql) .include "../../mk/mysql.buildlink3.mk" CONFIGURE_ARGS+= --with-dlz-mysql=${BUILDLINK_PREFIX.mysql-client} .endif .if !empty(PKG_OPTIONS:Mpgsql) .include "../../mk/pgsql.buildlink3.mk" CONFIGURE_ARGS+= --with-dlz-postgres=${BUILDLINK_PREFIX.${PGSQL_TYPE}} CONFIGURE_ENV+= ac_cv_path_PG_CONFIG=${PREFIX}/bin/pg_config .endif .if !empty(PKG_OPTIONS:Mldap) .include "../../databases/openldap-client/buildlink3.mk" CONFIGURE_ARGS+= --with-dlz-ldap=${BUILDLINK_PREFIX.openldap-client} .endif .if !empty(PKG_OPTIONS:Mdlz-filesystem) CONFIGURE_ARGS+= --with-dlz-filesystem .endif ### ### The statistics server in bind95 and later needs libxml2 ### .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server) .include "../../textproc/libxml2/buildlink3.mk" CONFIGURE_ARGS+= --with-libxml2 .else CONFIGURE_ARGS+= --without-libxml2 .endif ### ### IPv6 support ### .if !empty(PKG_OPTIONS:Minet6) CONFIGURE_ARGS+= --enable-ipv6 .else CONFIGURE_ARGS+= --disable-ipv6 .endif ### ### pthreads support (also see magic above) ### .if !empty(PKG_OPTIONS:Mthreads) CONFIGURE_ARGS+= --enable-threads .else CONFIGURE_ARGS+= --disable-threads .endif