Date: Wed, 19 Dec 2007 16:56:21 +0100 From: "Pav Lucistnik" <pav@FreeBSD.org> To: Paul Schmehl <pauls@utdallas.edu>, FreeBSD Ports <freebsd-ports@FreeBSD.org> Subject: Re: Optional patching Message-ID: <20071219155517.M33257@FreeBSD.org> In-Reply-To: <4D1AAAB26DADCFB11343F6B3@utd59514.utdallas.edu> References: <4D1AAAB26DADCFB11343F6B3@utd59514.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Dec 2007 09:53:15 -0600, Paul Schmehl wrote > wondering if I can use OPTIONS to make this patch optional if the > system is 64 bit, but I'm not sure what the syntax would be inside > the if statement. > > .if defined(WITH_64BIT) > do-patch: patchname > .endif > > I assume the patch would have to be in the filesdir but could not be > named "patch-foo" or it would always be applied, correct? Correct. Place it in files/ and use something like: .if defined(WITH_ELPATCHO) EXTRA_PATCHES+= extra-patch .endif -- Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071219155517.M33257>