Specifying perl dependencies in a port
Brent B. Powers
bbp2006 at columbia.edu
Thu Aug 4 21:25:49 GMT 2005
I've a port that requires _either_ perl5 or perl5.8. This isn't a
problem on FBSD5, but on 4.11, it appears that if I build the package
on a system with 5.8, 5.8 is specified as a dependency, and if the
package is build on a system with 5.6, 5.6 is set as a dependency.
Is there a clean way to specify (on 4.11) that we require a 'modern' perl?
(Makefile attached)
# New ports collection makefile for: net/p5-Net-HL7
# Date created: 26 Jul 2005
# Whom: Brent B. Powers <bbp2006 at columbia.edu>
#
# $FreeBSD: ports/net/p5-Net-HL7/Makefile,v 1.1 2005/07/28 13:36:53
garga Exp $
#
PORTNAME= Net-HL7
PORTVERSION= 0.73
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hl7toolkit
PKGNAMEPREFIX= p5-
MAINTAINER= bbp2006 at columbia.edu
COMMENT= Net::HL7 - A simple yet flexible API for non-XML HL7
applications
PORTDOCS= README
PERL_CONFIGURE= yes
MAN3= Net::HL7.3 \
Net::HL7::Request.3 \
Net::HL7::Connection.3 \
Net::HL7::Response.3 \
Net::HL7::Daemon.3 \
Net::HL7::Segment.3 \
Net::HL7::Message.3 \
Net::HL7::Segments::MSH.3 \
Net::HL7::Messages::ACK.3
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
.if ${PERL_LEVEL} < 500600
IGNORE= Requires perl 5.6 or better. Please install lang/perl5.8 and
retry
.endif
.include <bsd.port.post.mk>
--
Brent B. Powers
Manager, Information Technology
Department of Pathology
Columbia University
More information about the freebsd-ports
mailing list