- Add check for installed perl-version.

- Mark as BROKEN on systems with perl < 5.6.0.

PR:		48626
Submitted by:	Michael Nottebrock <michaelnottebrock@gmx.net>
This commit is contained in:
Yen-Ming Lee 2003-03-01 19:30:37 +00:00
parent 09aeb3ea5d
commit 10341c2ceb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76708

View file

@ -44,6 +44,8 @@ MAN1= dvdrip.1 dr_splitpipe.1 dr_progress.1
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Video::DVDRip.3
.include <bsd.port.pre.mk>
pre-everything::
.if !defined(WITHOUT_CLUSTER)
@${ECHO_MSG}
@ -74,4 +76,9 @@ post-patch:
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.if ${PERL_LEVEL} < 500600
BROKEN= "You need at least perl 5.6.0. Do not use FreeBSD 4.x' system perl,\
it's outdated. Install lang/perl5 and issue 'use.perl port'"
.endif
.include <bsd.port.post.mk>