From 3fd560be8d62f03c40af54424f2f903c0d8c0bc4 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 14 Jul 2005 02:26:09 +0000 Subject: Force use of pkgsrc libmilter, not builtin. If the builtin version is 8.12 (as with NetBSD 2, for instance), but pkgsrc sendmail 8.13 is installed, then clamav will attempt to use the 8.13 milter API, and fail linking. (It probably should use an autoconf symbol test instead.) This change forces an API at least new enough to match the latest version offered via pkgsrc; and since libmilter is a static library, it still ends up with no runtime DEPENDS. No PKGREVISION bump required, as milter is a non-default option. --- mail/clamav/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail/clamav') diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile index a09d3398b30..acaa4c9e398 100644 --- a/mail/clamav/Makefile +++ b/mail/clamav/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2005/06/24 05:58:42 grant Exp $ +# $NetBSD: Makefile,v 1.42 2005/07/14 02:26:09 tv Exp $ DISTNAME= clamav-${CLAMAV_VERSION} PKGNAME= clamav-${CLAMAV_VERSION:S/-/./} @@ -61,6 +61,10 @@ PKG_SUGGESTED_OPTIONS= curl .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mmilter) +# force use of pkgsrc version of libmilter -- clamav uses the sendmail binary +# to check API compatibility(!), so it must build with as new a version of +# libmilter as pkgsrc is capable of providing +USE_BUILTIN.libmilter= no . include "../../mail/libmilter/buildlink3.mk" CONFIGURE_ARGS+= --enable-milter PLIST_SUBST+= MILTER= -- cgit v1.2.3