Subject: Re: Conditionals in Makefile
To: Roman Kulik <kuli0020@umn.edu>
From: Juan RP <juan@xtrarom.org>
List: tech-pkg
Date: 08/03/2005 23:14:42
On Wed, 3 Aug 2005 15:53:56 -0500
"Roman Kulik" <kuli0020@umn.edu> wrote:

> I'm wondering how conditionals work with NetBSD Makefiles.  I need
> something like:
> 
> .if ${PERL_LEVEL} > 500600
> IGNORE=         "This module is already included in Perl 5.6.x and
> later." .endif
> 
> Which is code from FreeBSD port which ignores the module if Perl >
> 5.006 is installed (this is for module p5-IO, which became Perl core
> module in 5.00307, but the newest version of the module is probably
> included with 5.006), but this breaks on NetBSD.  What is done
> differently in NetBSD? Thanks, Roman Kulik 

PERL5_REQD+= 5.6.0 

or whatever.