Subject: Re: bsd.pkg.mk proposal 5: flexible distfile handling
To: Todd Vierling <tv@pobox.com>
From: Frederick Bruckman <fb@enteract.com>
List: tech-pkg
Date: 05/27/1999 12:15:59
On Thu, 27 May 1999, Todd Vierling wrote:
> On Thu, 27 May 1999, Frederick Bruckman wrote:
>
> : > I intend to have the ability to include a set of patches from PATCHDIRS
> : > conditionally. That is, you can add patterns to the patch search list
> : > depending on OPSYS, USE_ flags, etc. Thought out that way, "patch-*" would
> : > be considered the "default" set of patches.
> : And OS_VERSION, too. That could be necessary, in some cases, to
> : support different releases of NetBSD with the same pkgsrc.
>
> The idea is for the package itself to do something along the lines of:
>
> .include "../../mk/bsd.prefs.mk"
> .if ${USE_RSAREF2} == "YES"
> PATCHDIRFILES+= rsaref-patch-*
> .endif
Yes, now I understand!
I'd struggled, under the present system, with the idea of how to patch
files which are already patched, or may not even exist, depending on
those USE_ options.