Date: Fri, 15 Dec 2006 13:40:08 +0100 From: Gabor Kovesdan <gabor@FreeBSD.org> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: Conditionnal patches in ${PATCHDIR} Message-ID: <458297A8.9030609@FreeBSD.org> In-Reply-To: <20061215121636.GY94832@obiwan.tataz.chchile.org> References: <20061215121636.GY94832@obiwan.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremie Le Hen schrieb: > Hi, > > (Please Cc: me in your replies.) > > I would like to apply a patch against a port conditionally, though I > don't want to use ${PATCHFILES} because IIUC, this requires the patch > to be stored remotely. > > My problem is that all files matching ${PATCHDIR}/patch-* are > automatically applied. > > I tried to "fork" the port using ${MASTERDIR} and store my patch > only in the forked port tree, but only patches in > ${MASTERDIR}/${PATCHDIR} are applied, and patches in > ${.CURDIR}/${PATCHDIR} are ignored. > > I didn't use to create ports, any advice would be welcome. > Thank you very much. > Best regards, > You can call the conditional patches extrapatch-* and add them to the EXTRA_PATCHES macro, like if defined(FOO) EXTRA_PATCHES+= ${FILESDIR}/extrapatch-foo.c .endif See e.g. mail/courier. Cheers, Gabor
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?458297A8.9030609>