From owner-freebsd-ports Sun Aug 25 11:24:26 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D23D637B400 for ; Sun, 25 Aug 2002 11:24:23 -0700 (PDT) Received: from mailgw2.be.to (mailgw2.be.to [202.222.162.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9281143E42 for ; Sun, 25 Aug 2002 11:24:22 -0700 (PDT) (envelope-from okazaki@be.to) Received: from mail1.be.to (mail1.be.to [202.222.162.242]) by mailgw2.be.to (8.11.0+3.3W/8.11.0/BETO3.11-20011212023439) with ESMTP id g7PIOAH08836; Mon, 26 Aug 2002 03:24:10 +0900 (envelope-from okazaki@be.to) Received: from space (eatkyo189123.adsl.ppp.infoweb.ne.jp [218.226.118.123]) by mail1.be.to (8.9.3+3.2W/BETO.2.1-02010803) with ESMTP id DAA24862; Mon, 26 Aug 2002 03:24:09 +0900 Date: Mon, 26 Aug 2002 03:23:40 +0900 Message-ID: <84fzx294r8.wl%okazaki@FreeBSD.org> From: Tetsurou Okazaki To: Mathieu Arnold Cc: FreeBSD-ports@FreeBSD.org Subject: Re: patching and OSVERSION In-Reply-To: <12031515.1030297102@sauron> References: <12031515.1030297102@sauron> User-Agent: Wanderlust/2.9.15 (Unchained Melody) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharajing=FE-mae?=) APEL/10.3 Emacs/21 (i686-pc-cygwin) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Sun, 25 Aug 2002 17:38:22 +0200, Mathieu Arnold wrote: > > I was looking at a port which requires different patches, say : > > use patch-1 whatever the version is > > .if ${OSVERSION} >= 460000 > also use patch-2 > .endif > > and after looking at the porter's handbook, I could not find out how to do > it (the patches are in the files subdirectory). In such a case, place conditional patches by file name like files/extra-patch-FOO, and use EXTRA_PATCHES as below. .if ${OSVERSION} >= 460000 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-FOO .endif Tetsurou To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message