Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Aug 2005 17:25:47 -0400
From:      "Brent B. Powers" <bbp2006@columbia.edu>
To:        freebsd-ports@freebsd.org
Subject:   Specifying perl dependencies in a port
Message-ID:  <42F287DB.9050307@columbia.edu>

next in thread | raw e-mail | index | archive | help
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@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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42F287DB.9050307>