Subject: how to find perl with BUILD_DEPENDS
To: None <jlam@netbsd.org>
From: None <itojun@iijlab.net>
List: source-changes
Date: 02/02/2001 06:57:49
>Module Name: pkgsrc
>Committed By: jlam
>Date: Thu Feb 1 21:52:22 UTC 2001
>
>Modified Files:
> pkgsrc/fonts/jisx0208fonts: Makefile
>
>Log Message:
>Use ${PERL5} instead of perl.
do we really want to do this?
BUILD_DEPENDS+= ${PERL5}:../../lang/perl5-base
by doing this, the Makefile will check /usr/pkg/bin/perl.
if we try to build the package on a system with perl shipped by
default (like /usr/bin/perl), it will pull unnecessary dependency.
===> Required file /usr/pkg/bin/perl: found
BUILD_DEPENDS+= perl:../../lang/perl5-base
by doing this, it will try to find perl from the search path.
it will build happy with /usr/bin/perl or something like that.
===> Required executable perl: /usr/pkg/bin/perl found
itojun