Subject: Re: how can we create PATCHFILES that are not DISTFILES?
To: NetBSD Packages Technical Discussion List <tech-pkg@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-pkg
Date: 04/19/2002 12:12:44
>I've been trying to update a pkgsrc module and I've run into a situation
>where the best way to enable an option seems to be to optionally patch
>the source before building, using a specific patch selected from a set
>of multiple optional patches (included in say ${FILESDIR}), based on
>some setting in mk/bsd.prefs.mk and/or /etc/mk.conf.
make your patch contain all features, and then enable each feature
based on the presence of some preprocessor token. ie, if you have a
patch that does something for alpha machines, your patch would contain
code surrounded by #ifdef alpha/#endif.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."