Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 1998 02:11:08 -0400 (EDT)
From:      Tim Vanderhoek <ac199@hwcn.org>
To:        Adam McDougall <mcdougall@ameritech.net>
Cc:        ports@FreeBSD.ORG
Subject:   Re: copying a file before patch and after extract
Message-ID:  <Pine.BSF.3.96.980510020412.205C-100000@localhost>
In-Reply-To: <35533D71.12E974AE@ameritech.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980510020412.205C-100000>