aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/Makefile
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2003-11-28 05:58:48 +0000
committerMike Silbersack <silby@FreeBSD.org>2003-11-28 05:58:48 +0000
commitf6e92007240a4d9f5cd57f188771564fb17dd104 (patch)
tree3549c43b1f5b0a268ed32ae3a812e507cd0faf92 /security/clamav/Makefile
parentbbce70975c76380e80aa757645900315f6f1e655 (diff)
downloadports-f6e92007240a4d9f5cd57f188771564fb17dd104.tar.gz
ports-f6e92007240a4d9f5cd57f188771564fb17dd104.zip
Clamav 0.65 uses libgmp for digital signature calculations;
as libgmp no longer exists in 5.x, add the needed dependency to this Makefile. (Note that stale gmp.h and libgmp files sitting around may still cause problems, anyone with an "old" 5.x system that sees oddities in the build should make sure that those old files are purged from /usr/lib and /usr/include.)
Notes
Notes: svn path=/head/; revision=94816
Diffstat (limited to 'security/clamav/Makefile')
-rw-r--r--security/clamav/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 408e15866d6c..31bd6a5f9291 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -72,6 +72,12 @@ CFLAGS+= -O
LDFLAGS+= -lcipher
.endif
+.if ${OSVERSION} > 501113
+# Approximate time libgmp was removed from the base system
+LDFLAGS+= -L${LOCALBASE}/lib
+LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
+.endif
+
.if defined(WITH_MILTER)
USE_GETOPT_LONG= yes
CONFIGURE_ARGS+= --enable-milter