summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-15 03:15:25 +0000
committerrillig <rillig@pkgsrc.org>2007-03-15 03:15:25 +0000
commitf507b28053f68bfcb715a0859dd9c1f5705a11c9 (patch)
tree3ff7a0284243bfcc01da5f55269e1ff84130976a
parentd3382dcdf99776fb90bbcfce7319138bbe6ba48b (diff)
downloadpkgsrc-f507b28053f68bfcb715a0859dd9c1f5705a11c9.tar.gz
NetBSD 1.6 does not have the readdir_r function.
-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}