diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-02-21 00:33:26 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-02-21 00:33:26 +0800 |
commit | 1e607f868b5505e10fabe70f19c1c6e491e4d1a0 (patch) | |
tree | 5a6539846b1be0d7960d421883f382b1984b610b /mail | |
parent | 548c9ae86f72ebe1570fffefb0f5b4dd3f3c0ab1 (diff) | |
download | freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.tar.gz freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.tar.zst freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.zip |
Conditionalise several dependencies on PERL_LEVEL to make those ports more
friendly for perl-5.8.0, which has those dependencies included into the
base distribution.
Sponsired by: Porta Software Ltd
Diffstat (limited to 'mail')
-rw-r--r-- | mail/p5-MIME-Tools/Makefile | 9 | ||||
-rw-r--r-- | mail/p5-Mail-Tools/Makefile | 12 |
2 files changed, 15 insertions, 6 deletions
diff --git a/mail/p5-MIME-Tools/Makefile b/mail/p5-MIME-Tools/Makefile index 11209cce15e2..03a8d8b610a4 100644 --- a/mail/p5-MIME-Tools/Makefile +++ b/mail/p5-MIME-Tools/Makefile @@ -16,7 +16,6 @@ DISTNAME= MIME-tools-${PORTVERSION} MAINTAINER= kuriyama@FreeBSD.org BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/IO/Wrap.pm:${PORTSDIR}/devel/p5-IO-stringy RUN_DEPENDS= ${BUILD_DEPENDS} @@ -46,8 +45,14 @@ MAN3= MIME::Body.3 \ MIME::WordDecoder.3 \ MIME::Words.3 +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 +.endif + post-patch: @${RM} -f ${WRKSRC}/lib/MIME/Field/ParamVal.pm.orig \ ${WRKSRC}/lib/MIME/Words.pm.orig -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/p5-Mail-Tools/Makefile b/mail/p5-Mail-Tools/Makefile index b0408c1e6fc9..fa0a95506ff4 100644 --- a/mail/p5-Mail-Tools/Makefile +++ b/mail/p5-Mail-Tools/Makefile @@ -15,9 +15,6 @@ DISTNAME= MailTools-${PORTVERSION} MAINTAINER= kuriyama@FreeBSD.org -BUILD_DEPENDS= ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net -RUN_DEPENDS= ${BUILD_DEPENDS} - PERL_CONFIGURE= yes MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} @@ -32,4 +29,11 @@ MAN3= Mail::Address.3 \ Mail::Send.3 \ Mail::Util.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net +RUN_DEPENDS= ${BUILD_DEPENDS} +.endif + +.include <bsd.port.post.mk> |