2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2006/02/05 23:09:56 joerg Exp $
|
2003-12-08 16:39:57 +01:00
|
|
|
|
2005-06-24 08:03:11 +02:00
|
|
|
DISTNAME= Mail-ClamAV-0.17
|
2003-12-08 16:39:57 +01:00
|
|
|
PKGNAME= p5-${DISTNAME}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2003-12-08 16:39:57 +01:00
|
|
|
CATEGORIES= mail perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Mail/}
|
|
|
|
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
|
|
COMMENT= Perl5 module for mail/clamav virus scanner
|
|
|
|
|
|
|
|
DEPENDS+= p5-Inline>=0.40:../../devel/p5-Inline
|
|
|
|
|
2004-10-20 08:29:50 +02:00
|
|
|
# this version needs clamav>=0.80
|
|
|
|
BUILDLINK_DEPENDS.clamav+= clamav>=0.80
|
|
|
|
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/Mail/ClamAV/.packlist
|
2004-11-06 20:16:44 +01:00
|
|
|
PTHREAD_OPTS+= require
|
2003-12-08 16:39:57 +01:00
|
|
|
|
2005-02-17 05:11:52 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
|
2005-05-31 12:01:36 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= curl
|
|
|
|
PKG_SUGGESTED_OPTIONS= curl
|
2005-02-17 05:11:52 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
|
|
. include "../../www/curl/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2003-12-08 16:39:57 +01:00
|
|
|
# avoid having PERL5_SITELIB, PERL5_SITEARCH and PERL5_ARCHLIB set in
|
|
|
|
# the environment, which confuses the 'install' target of modules
|
|
|
|
# which use Inline, such as this one.
|
|
|
|
#
|
|
|
|
# XXX do these environment variables really need to be set in targets
|
|
|
|
# XXX other than 'install'?
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && \
|
2004-12-03 16:14:50 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_TARGET}
|
2003-12-08 16:39:57 +01:00
|
|
|
|
|
|
|
.include "../../lang/perl5/module.mk"
|
2004-04-25 03:15:12 +02:00
|
|
|
.include "../../mail/clamav/buildlink3.mk"
|
2004-11-06 20:16:44 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2003-12-08 16:39:57 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|