Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 1998 01:43:02 -0400 (EDT)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Tim Vanderhoek <ac199@hwcn.org>
Cc:        Adam McDougall <mcdougall@ameritech.net>, ports@FreeBSD.ORG
Subject:   Re: copying a file before patch and after extract
Message-ID:  <Pine.BSF.3.96.980510014207.16302A-100000@localhost>
In-Reply-To: <Pine.BSF.3.96.980510020412.205C-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 May 1998, Tim Vanderhoek wrote:

> 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
> 

Can't patch a non-existent file, so he'd have to do a copy first.

> 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
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic (FreeBSD-current)
(301) 220-2114              | and jaunt (NetBSD).
----------------------------+-----------------------------------------------





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.980510014207.16302A-100000>