Re: Per-port options in make.conf?

2007-10-23 Thread Josh Carroll
 Is there any way to specify options in make.conf on a per-port basis?

Yes, something like this should work:

.if ${.CURDIR:M*/portnamehere*}
WITHOUT_X11=yes
.endif


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


Re: Per-port options in make.conf?

2007-10-23 Thread Yuri Pankov

On Mon, 2007-10-22 at 23:32 +0100, Benjamin M. A'Lee wrote:
 Is there any way to specify options in make.conf on a per-port basis?
 
 For example, if I want Vim built without X11, I can specify the WITHOUT_X11
 flag, but putting that in make.conf will affect every port.
 
 I'm aware it's possible to do it with portupgrade, but I was hoping for a
 method that would work both with and without portupgrade.
 
 Thanks in advance.
 

ports-mgmt/portconf looks like what you want:

Portconf is a simple framework to set ports options in an
universal way. Knobs set to specific ports are honoured
by portmaster, portupgrade, portmanager and 'make install'.


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


Re: Per-port options in make.conf?

2007-10-23 Thread Roland Smith
On Mon, Oct 22, 2007 at 11:32:39PM +0100, Benjamin M. A'Lee wrote:
 Is there any way to specify options in make.conf on a per-port basis?
 
 For example, if I want Vim built without X11, I can specify the WITHOUT_X11
 flag, but putting that in make.conf will affect every port.

Use .if and .CURDIR;

.if ${.CURDIR:M*/editors/vim}
WITHOUT_X11=yes
.endif

Note that this only works for the vim port. If you want to use it for
say vim5 and vim6, you have to add an extra star at the end:

.if ${.CURDIR:M*/editors/vim*}
WITHOUT_X11=yes
.endif

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)


pgpmxiBzao2dp.pgp
Description: PGP signature


Re: Per-port options in make.conf?

2007-10-23 Thread Benjamin M. A'Lee
On Mon, Oct 22, 2007 at 11:18:59PM -0400, Josh Carroll wrote:
  Is there any way to specify options in make.conf on a per-port basis?
 
 Yes, something like this should work:
 
 .if ${.CURDIR:M*/portnamehere*}
 WITHOUT_X11=yes
 .endif
 

On Tue, Oct 23, 2007 at 07:30:29AM +0200, Roland Smith wrote:
 On Mon, Oct 22, 2007 at 11:32:39PM +0100, Benjamin M. A'Lee wrote:
  Is there any way to specify options in make.conf on a per-port basis?
  
  For example, if I want Vim built without X11, I can specify the WITHOUT_X11
  flag, but putting that in make.conf will affect every port.
 
 Use .if and .CURDIR;
 
 .if ${.CURDIR:M*/editors/vim}
 WITHOUT_X11=yes
 .endif
 
 Note that this only works for the vim port. If you want to use it for
 say vim5 and vim6, you have to add an extra star at the end:
 
 .if ${.CURDIR:M*/editors/vim*}
 WITHOUT_X11=yes
 .endif

Thanks, I thought I'd seen something along these lines but I couldn't
work out what exactly it was (or if there was a better way).

-- 
Benjamin A'Lee [EMAIL PROTECTED]
http://subvert.org.uk/~bma/
It is forbidden to kill; therefore all murderers are punished unless
they kill in large numbers and to the sound of trumpets. - Voltaire


pgpBOkG1WGV8B.pgp
Description: PGP signature