summaryrefslogtreecommitdiffstats
path: root/lib/bind
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-06-01 21:58:59 +0000
committerdougb <dougb@FreeBSD.org>2009-06-01 21:58:59 +0000
commitec14ac76ed8467044f813ea36d7231146abe424a (patch)
tree72db1e0c01d84e250caffb50818290e40f7886f4 /lib/bind
parent4222ea65c24563b74d0877038cd3d19da5666f1d (diff)
downloadFreeBSD-src-ec14ac76ed8467044f813ea36d7231146abe424a.zip
FreeBSD-src-ec14ac76ed8467044f813ea36d7231146abe424a.tar.gz
Add support for the build options that are currently in the port:
WITH_BIND_IDN WITH_BIND_LARGE_FILE WITH_BIND_SIGCHASE WITH_BIND_XML
Diffstat (limited to 'lib/bind')
-rw-r--r--lib/bind/config.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/bind/config.mk b/lib/bind/config.mk
index 92cfbec..a50d348 100644
--- a/lib/bind/config.mk
+++ b/lib/bind/config.mk
@@ -70,6 +70,19 @@ ISC_ATOMIC_ARCH= x86_32
ISC_ATOMIC_ARCH= ${MACHINE_ARCH}
.endif
+# Optional features
+.if ${MK_BIND_LARGE_FILE} == "yes"
+CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+.endif
+.if ${MK_BIND_SIGCHASE} == "yes"
+CFLAGS+= -DDIG_SIGCHASE
+.endif
+.if ${MK_BIND_XML} == "yes"
+CFLAGS+= -DHAVE_LIBXML2
+CFLAGS+= -I/usr/local/include -I/usr/local/include/libxml2
+CFLAGS+= -L/usr/local/lib -lxml2 -lz -liconv -lm
+.endif
+
# Link against BIND libraries
.if ${MK_BIND_LIBS} == "no"
LIBBIND9= ${LIB_BIND_REL}/bind9/libbind9.a
OpenPOWER on IntegriCloud