make options for ports

Jez Hancock jez.hancock at munk.nu
Mon Aug 18 13:30:04 PDT 2003


On Mon, Aug 18, 2003 at 10:38:46AM -0700, Kevin Stevens wrote:
> I'm struggling with an issue in trying to compile ports.  The specific one
> is the imap-uw port, but it's a more general question.  I need to be able
> to download and expand the distribution file, then to perform some source
> code modifications, and then compile and install the port.
> 
> It seems that whichever sequence of make targets I try, I end up either
> wiping out the existing source code and re-expanding the distribution
> (which wipes out my edits); or simply reinstalling the already-compiled
> binaries without recompiling (which ignores my edits).
Something like:

make clean extract
<make your changes to source in 'work' dir>
make install

should work fine (this worked ok for me with imap-uw).  Won't work with
all ports, particularly if there are freebsd port patch files that are
applied in the make process (found in the port's 'files' directory).

-- 
Jez

http://www.munk.nu/


More information about the freebsd-questions mailing list