From owner-freebsd-ports Sat May 9 23:12:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA20499 for freebsd-ports-outgoing; Sat, 9 May 1998 23:12:59 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from localhost.my.domain (ppp1539.on.bellglobal.com [206.172.249.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA20491 for ; Sat, 9 May 1998 23:12:52 -0700 (PDT) (envelope-from ac199@hwcn.org) Received: from localhost (tim@localhost) by localhost.my.domain (8.8.8/8.8.8) with SMTP id CAA00360; Sun, 10 May 1998 02:11:09 -0400 (EDT) (envelope-from ac199@hwcn.org) X-Authentication-Warning: localhost.my.domain: tim owned process doing -bs Date: Sun, 10 May 1998 02:11:08 -0400 (EDT) From: Tim Vanderhoek X-Sender: tim@localhost Reply-To: ac199@hwcn.org To: Adam McDougall cc: ports@FreeBSD.ORG Subject: Re: copying a file before patch and after extract In-Reply-To: <35533D71.12E974AE@ameritech.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 8 May 1998, Adam McDougall wrote: > Hello, I'm working on creating a port or a few of some chemistry/biology > programs, and one im working on has Makefiles named as Makefile.(os > here) and there isnt one for freebsd, but I found out how to patch the > linux one to work. How can I have the port mechanism copy > Makefile.linux_alt to Makefile so my patches will apply to Makefile? There are any number of ways to answer your general question, but to the specific one ... pre-patch: @${CP} ${WRKSRC}/Makefile.linux_alt ${WRKSRC}/Makefile Don't forget to submit an appropriate Makefile.freebsd and whatever other patches to the maintainer of the program. I suggest, though, that a better way to solve the problem (from a stylistic perspective), is to make your patches apply to Makefile.linux_alt. Then add MAKEFILE= Makefile.linux_alt to your port's Makefile. I think I prefer this method; from a stylistic perspective, it's definately better (patching files that aren't even included in the main dist is bad form). -- This .sig is not innovative, witty, or profund. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message