summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-10-06 16:44:53 +0000
committerseb <seb@pkgsrc.org>2002-10-06 16:44:53 +0000
commitd49629ba0bb69ec820e950dbd20cda2c05916675 (patch)
tree466d3b6ae5b96a45131722a0d71669f1d1858d43 /net/bind9
parenta38f950f5815fbc4e7b269b7de05c88d5a292ad3 (diff)
downloadpkgsrc-d49629ba0bb69ec820e950dbd20cda2c05916675.tar.gz
buildlink1 -> buildlink2
Add support for native pthread via mk/pthread.buildlink2.mk
Diffstat (limited to 'net/bind9')
-rw-r--r--net/bind9/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/net/bind9/Makefile b/net/bind9/Makefile
index 271d9407b68..651ea27da98 100644
--- a/net/bind9/Makefile
+++ b/net/bind9/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2002/08/26 12:09:36 grant Exp $
+# $NetBSD: Makefile,v 1.45 2002/10/06 16:44:53 seb Exp $
#
DISTNAME= bind-${BIND_VERSION}
@@ -17,12 +17,12 @@ DIST_SUBDIR= bind/${BIND_VERSION}
BUILD_DEFS+= USE_INET6
# No need to set USE_INET6, will auto-detect.
+USE_BUILDLINK2= yes
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE+= ${WRKSRC}/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/lib/bind/libtool
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--disable-threads # Until we have real threads
CONFIGURE_ARGS+=--with-libtool=yes \
--sysconfdir=/etc \
--localstatedir=/var
@@ -31,6 +31,8 @@ CONFIGURE_ARGS+=--with-libtool=yes \
# include at the bottom to use OpenSSL shipped with BIND9.
CONFIGURE_ARGS+=--with-openssl=${SSLBASE}
+PTHREAD_OPTS+= native
+
post-build:
${SED} \
-e 's|@PREFIX@|${PREFIX}|' \
@@ -66,5 +68,12 @@ post-install:
${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d/named9
${INSTALL_SCRIPT} ${WRKDIR}/lwresd ${PREFIX}/etc/rc.d/lwresd
-.include "../../security/openssl/buildlink.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+CONFIGURE_ARGS+= --disable-threads
+.else
+CONFIGURE_ARGS+= --enable-threads
+.endif