summaryrefslogtreecommitdiff
path: root/security/clamav
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2007-03-16 12:20:45 +0000
committerMartin Blapp <mbr@FreeBSD.org>2007-03-16 12:20:45 +0000
commit4d6596886f5c32b1e193e6706ddd45b99b1d4295 (patch)
tree16b6ccad898b8472288017da075a9796fa98a5e3 /security/clamav
parent- Update to 1.6.1 (diff)
And unbreak support for older FreeBSDs where libthr/libpthread did not exist.
PR: 110334
Notes
Notes: svn path=/head/; revision=187504
Diffstat (limited to 'security/clamav')
-rw-r--r--security/clamav/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 53a974c8c1a2..ca36871cd835 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -30,10 +30,6 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LDCONFIG= yes
USE_RC_SUBR= clamav-clamd clamav-freshclam
-# This port has a problem with -pthread,
-# force to use -lthr until it's not fixed.
-PTHREAD_LIBS= -lthr
-
PORTDOCS= *
DBDIR= /var/db/clamav
@@ -102,7 +98,15 @@ PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 601000
+# This port has a problem with -pthread,
+# force to use -lthr until it's not fixed.
+.if ${OSVERSION} >= 601000
+PTHREAD_LIBS= -lthr
+.endif
+# Maybe the port is broken for
+# FreeBSD 5.2.1 since -lc_r
+# and -pthread have both issues there.
+.if ${OSVERSION} == 502010
PTHREAD_LIBS= -pthread
.endif