summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-Box1
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2003-08-05 11:58:12 +0000
committerAnton Berezin <tobez@FreeBSD.org>2003-08-05 11:58:12 +0000
commitefa2a94a3ccc313b08789414f1dddc5d159dde97 (patch)
tree9425fc7537a1c7922130db12b21c8203be02dc2c /mail/p5-Mail-Box1
parentUpgrade to release 3.5.1. (diff)
Make it work with perls >= 5.6.
Submitted by: droso
Notes
Notes: svn path=/head/; revision=86341
Diffstat (limited to 'mail/p5-Mail-Box1')
-rw-r--r--mail/p5-Mail-Box1/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/p5-Mail-Box1/Makefile b/mail/p5-Mail-Box1/Makefile
index f9d0626d7f32..89b1a5ca620c 100644
--- a/mail/p5-Mail-Box1/Makefile
+++ b/mail/p5-Mail-Box1/Makefile
@@ -15,8 +15,7 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Perl module implementing a modern mail-folder managerat
-BUILD_DEPENDS= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
- ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
+BUILD_DEPENDS= ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate
RUN_DEPENDS= ${BUILD_DEPENDS}
@@ -44,4 +43,11 @@ post-patch:
${PERL} -pi -e 's/^our\s+([\$$\@]\w+)/use vars qw($$1);$$1/' \
${WRKSRC}/Message.pm
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} <= 500600
+BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif
+
+.include <bsd.port.post.mk>