From owner-freebsd-ports Thu Apr 11 00:05:56 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA16576 for ports-outgoing; Thu, 11 Apr 1996 00:05:56 -0700 (PDT) Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id AAA16567 for ; Thu, 11 Apr 1996 00:05:46 -0700 (PDT) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.7.5/8.6.9) id AAA02378; Thu, 11 Apr 1996 00:03:06 -0700 (PDT) Date: Thu, 11 Apr 1996 00:03:06 -0700 (PDT) Message-Id: <199604110703.AAA02378@silvia.HIP.Berkeley.EDU> To: t94303mn@sfc.keio.ac.jp CC: freebsd-ports@FreeBSD.org, t94303mn@sfc.keio.ac.jp In-reply-to: <199604101422.XAA19199@mail.tky007.tth.expo96.ad.jp> (message from Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= on Wed, 10 Apr 1996 23:22:45 +0900) Subject: Re: How to apply patch distributed in tar.gz format? From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk * I'm porting a program that has patch files distributed in tar.gz * format. So, after extracting the original archive, you after extract * patch file from the patch distribution archive to apply it. * Could anyone tell me how to write the Makefile to do such a task? Make it one of the DISTFILES, set EXTRACT_ONLY to the "real" distfile, and write a pre-patch target to patch it manually. Or, you can make pre-patch extract it into ${PATCHDIR} as "patch-*", so the regular patch target will pick it up. Don't forget to add a pre-clean target to delete it. misc/mmv does something similar (albeit in the extraction phase). Satoshi