Re: prevent overwriting custom make options in ports

2008-06-11 Thread Anton Shterenlikht
On Mon, Jun 09, 2008 at 03:33:01PM +0100, Anton Shterenlikht wrote:
 I use ports/lang/gcc42.
 I set WITHOUT_JAVA=yes in the Makefile.
 However, with each tree update this option is
 overwritten, so I have to edit the Makefile
 each time I update the port.
 
 What is the best way to preserve my custom setting,
 add an environment variable?

Roland, Tijl, many thanks

Somehow I missed you answers in the mailing list, only now picked them
on google groups.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


prevent overwriting custom make options in ports

2008-06-09 Thread Anton Shterenlikht
I use ports/lang/gcc42.
I set WITHOUT_JAVA=yes in the Makefile.
However, with each tree update this option is
overwritten, so I have to edit the Makefile
each time I update the port.

What is the best way to preserve my custom setting,
add an environment variable?

many thanks
anton
 
-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: prevent overwriting custom make options in ports

2008-06-09 Thread Roland Smith
On Mon, Jun 09, 2008 at 03:33:01PM +0100, Anton Shterenlikht wrote:
 I use ports/lang/gcc42.
 I set WITHOUT_JAVA=yes in the Makefile.
 However, with each tree update this option is
 overwritten, so I have to edit the Makefile
 each time I update the port.
 
 What is the best way to preserve my custom setting,
 add an environment variable?

Add the following to your /etc/make.conf:

.if ${.CURDIR:M*/lang/gcc*}
WITHOUT_JAVA=yes
.endif

What this means is: if the current build directory (.CURDIR) matches 
(M) the pattern */lang/gcc*, set WITHOUT_JAVA=yes. See the VARIABLE
ASSIGNMENTS section in the make(1) manual page for details. 

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpvWnVYY0Fad.pgp
Description: PGP signature


Re: prevent overwriting custom make options in ports

2008-06-09 Thread Tijl Coosemans
On Monday 09 June 2008 16:33:01 Anton Shterenlikht wrote:
 I use ports/lang/gcc42.
 I set WITHOUT_JAVA=yes in the Makefile.
 However, with each tree update this option is
 overwritten, so I have to edit the Makefile
 each time I update the port.
 
 What is the best way to preserve my custom setting,
 add an environment variable?

I use port-mgmt/portconf for that. It allows to set port options
in /usr/local/etc/ports.conf like:

lang/gcc42: WITHOUT_JAVA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make options for ports

2003-08-18 Thread Kevin Stevens
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).

I'm sure I'm missing something obvious here, but I can't figure it out.
Help?

KeS
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make options for ports

2003-08-18 Thread Erik Trulsson
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.

First do a 'make patch', which will extract the distfile and apply the
patches that are part of the port.
The do a 'cd' into the workdir and modify the sources as you wish, and
then 'cd' back into the port-directory, and do a 'make install' which
will configure, compile and install that port using the source code
that you have modified.
Works just fine for me, and there is no reason it shouldn't work for
you too.

 
 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).
 
 I'm sure I'm missing something obvious here, but I can't figure it out.
 Help?



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make options for ports

2003-08-18 Thread Kevin Stevens


On Mon, 18 Aug 2003, Erik Trulsson wrote:

 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.

 First do a 'make patch', which will extract the distfile and apply the
 patches that are part of the port.
 The do a 'cd' into the workdir and modify the sources as you wish, and
 then 'cd' back into the port-directory, and do a 'make install' which
 will configure, compile and install that port using the source code
 that you have modified.
 Works just fine for me, and there is no reason it shouldn't work for
 you too.

Thanks!  The 'make patch' target is what I was missing, I was blowing past
that with an initial 'make', and then getting stuck in various 'deinstall;
reinstall' loops.  I'll post back if I have further problems, but I
suspect this is the answer I needed.

KeS
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make options for ports

2003-08-18 Thread Kris Kennaway
On Mon, Aug 18, 2003 at 01:19:52PM -0700, Kevin Stevens wrote:

 Thanks!  The 'make patch' target is what I was missing, I was blowing past
 that with an initial 'make', and then getting stuck in various 'deinstall;
 reinstall' loops.  I'll post back if I have further problems, but I
 suspect this is the answer I needed.

Also see the Porter's Handbook for more detail on creating/modifying ports.

Kris


pgp0.pgp
Description: PGP signature


Re: make options for ports

2003-08-18 Thread Jez Hancock
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/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make options for ports

2003-08-18 Thread Erik Trulsson
On Mon, Aug 18, 2003 at 01:23:21PM -0700, Kris Kennaway wrote:
 On Mon, Aug 18, 2003 at 01:19:52PM -0700, Kevin Stevens wrote:
 
  Thanks!  The 'make patch' target is what I was missing, I was blowing past
  that with an initial 'make', and then getting stuck in various 'deinstall;
  reinstall' loops.  I'll post back if I have further problems, but I
  suspect this is the answer I needed.
 
 Also see the Porter's Handbook for more detail on creating/modifying ports.

The ports(7) manpage is also quite useful to read. For this particular
problem I think it would actually have been more helpful than the
Porter's Handbook.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]