summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/jwhois/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index a7bdea36fed..bc7b61d6d43 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/04/25 08:28:09 snj Exp $
+# $NetBSD: Makefile,v 1.36 2004/05/02 18:01:15 xtraeme Exp $
#
DISTNAME= jwhois-3.2.2
@@ -16,12 +16,17 @@ USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=/var/db
-CONFIGURE_ARGS+= --with-cache
LIBS.SunOS+= -lnsl -lsocket
INFO_FILES= jwhois.info
+BUILD_DEFS+= ENABLE_CACHE
+
+.if defined(ENABLE_CACHE)
+CONFIGURE_ARGS+= --with-cache
+.endif
+
EGDIR= ${PREFIX}/share/examples/jwhois
CONF_FILES= ${EGDIR}/jwhois.conf.default \
${PKG_SYSCONFDIR}/jwhois.conf