summaryrefslogtreecommitdiff
path: root/mail/clamav
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-15 03:15:25 +0000
committerrillig <rillig>2007-03-15 03:15:25 +0000
commit0ddd1ca4fcddde4d44e65a59ec8ad62c5405d21b (patch)
tree3ff7a0284243bfcc01da5f55269e1ff84130976a /mail/clamav
parent81b44dfe91ea94f874a5a46352eec0de0dc36a95 (diff)
downloadpkgsrc-0ddd1ca4fcddde4d44e65a59ec8ad62c5405d21b.tar.gz
NetBSD 1.6 does not have the readdir_r function.
Diffstat (limited to 'mail/clamav')
-rw-r--r--mail/clamav/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 3c03c147b32..cc4bc7f7999 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2007/03/06 10:32:33 martti Exp $
+# $NetBSD: Makefile,v 1.71 2007/03/15 03:15:25 rillig Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
@@ -24,10 +24,15 @@ CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER:Q}
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP:Q}
CONFIGURE_ARGS+= --with-tcpwrappers
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
-CONFIGURE_ARGS+= --enable-readdir_r
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M1.*)
+CONFIGURE_ARGS+= --disable-readdir-r
+.else
+CONFIGURE_ARGS+= --enable-readdir_r
+.endif
+
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP CLAMAV_DBDIR
FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER:Q}
MESSAGE_SUBST+= CLAMAV_USER=${CLAMAV_USER}