Subject: Re: bsd.pkg.mk proposal 5: flexible distfile handling
To: Frederick Bruckman <fb@enteract.com>
From: Todd Vierling <tv@pobox.com>
List: tech-pkg
Date: 05/27/1999 12:46:43
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.
: 
: Sounds pretty cool. Do you have something like that in mind for the
: lynx package?
: 
: 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

(The name of the PATCHDIRFILES variable above was just pulled out of a hat,
not officially proposed yet.)

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)