summaryrefslogtreecommitdiff
path: root/mail/clamav
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-03-30 00:29:59 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-03-30 00:29:59 +0000
commit4e1b28d22c9ff8ca67e5caf2c94d6f3af8a54c55 (patch)
tree8dfcc718368f35de9cb4bd1c4e0b9bab07aa4f50 /mail/clamav
parentfb448d74b8baf1abdfa4b930c6bb1cc609ec8b72 (diff)
downloadpkgsrc-4e1b28d22c9ff8ca67e5caf2c94d6f3af8a54c55.tar.gz
bl3ify
Diffstat (limited to 'mail/clamav')
-rw-r--r--mail/clamav/Makefile14
-rw-r--r--mail/clamav/buildlink3.mk22
2 files changed, 29 insertions, 7 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 4695c5c5193..3c2d151ac1f 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/03/09 06:39:36 grant Exp $
+# $NetBSD: Makefile,v 1.14 2004/03/30 00:29:59 xtraeme Exp $
DISTNAME= clamav-0.66
PKGREVISION= 1
@@ -10,7 +10,7 @@ MAINTAINER= david@netbsd-fr.org
HOMEPAGE= http://www.clamav.net/
COMMENT= Anti-virus toolkit
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
USE_PKGINSTALL= yes
USE_LIBTOOL= yes
@@ -33,7 +33,7 @@ PLIST_SRC= ${PKGDIR}/PLIST
.include "../../mk/bsd.prefs.mk"
.if defined(USE_MILTER) && ${USE_MILTER} == "YES"
-#.include "../../mail/libmilter/buildlink2.mk"
+#.include "../../mail/libmilter/buildlink3.mk"
#CONFIGURE_ARGS+= --enable-milter
#PLIST_SRC+= ${PKGDIR}/PLIST.milter
.else
@@ -44,9 +44,9 @@ CONFIGURE_ARGS+= --disable-milter
post-install:
${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/clamav
-.include "../../archivers/bzip2/buildlink2.mk"
-.include "../../devel/zlib/buildlink2.mk"
-.include "../../devel/gmp/buildlink2.mk"
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
-.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/clamav/buildlink3.mk b/mail/clamav/buildlink3.mk
new file mode 100644
index 00000000000..df319c02561
--- /dev/null
+++ b/mail/clamav/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/03/30 00:29:59 xtraeme Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+CLAMAV_BUILDLINK3_MK:= ${CLAMAV_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= clamav
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nclamav}
+BUILDLINK_PACKAGES+= clamav
+
+.if !empty(CLAMAV_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.clamav+= clamav>=0.60nb1
+BUILDLINK_PKGSRCDIR.clamav?= ../../mail/clamav
+.endif # CLAMAV_BUILDLINK3_MK
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}