Re: ports-mgmt/portmaster question

2008-12-28 Thread Sergey Kovalev

Matthew Seaman wrote:

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because 
it is included at "the bottom of the port's Makefile", but then you 
can resort to /etc/make.conf.


Yep.  That's true.  Unfortunately though if you use freebsd-update to 
update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


There is also a nice port ports-mgmt/portconf which adds some snippet to
/etc/make.conf which allows you to add your options in a neat way to
/usr/local/etc/ports.conf.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ports-mgmt/portmaster question

2008-12-28 Thread Matthew Seaman

Matthew Seaman wrote:

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?



...


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because 
it is included at "the bottom of the port's Makefile", but then you 
can resort to /etc/make.conf.




Yep.  That's true.  Unfortunately though if you use freebsd-update to 


Ooops portsnap

update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


Cheers,

Matthew




--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: ports-mgmt/portmaster question

2008-12-28 Thread Matthew Seaman

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?



...


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because it is 
included at "the bottom of the port's Makefile", but then you can resort 
to /etc/make.conf.




Yep.  That's true.  Unfortunately though if you use freebsd-update to 
update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: ports-mgmt/portmaster question

2008-12-27 Thread Mel
On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:
> B. Cook wrote:
> > Is there a way to pass make args (other than -m) for each port?
> >

...

> If you want options that only apply to specific ports, then you can use
> a construct like this:
>
> .if ${.CURDIR:M*/databases/mysql*}
> WITH_CHARSET=utf8
> WITH_XCHARSET=none
> WITH_COLLATION=utf8_unicode_ci
> WITH_OPENSSL=yes
> BUILD_OPTIMIZED=yes
> WITH_INNODB=yes
> WITH_ARCHIVE=yes
> WITH_FEDERATED=yes
> WITH_NDB=yes
> WITH_CSV=yes
> WITH_SPHINXSE=yes
> .endif

Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because it is 
included at "the bottom of the port's Makefile", but then you can resort 
to /etc/make.conf.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ports-mgmt/portmaster question

2008-12-24 Thread Matthew Seaman

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?

For example if I use -m BUILD_STATIC=YES and -m BUILD_OPTIMIZED=YES for 
mysql50-server.. other than remembering that I did that.. is there 
someway to have portmaster read its portmaster.rc and get that information?


Yes.  Actually, it's not portmaster specific -- it works for any method of
using ports.  Just edit /etc/make.conf to include the options you want.

eg.

WITH_OPENSSL_PORT=  yes
WITH_BDB_VER=   46
WITH_MYSQL_VER= 50
WITH_OPENLDAP_VER=  24
WANT_OPENLDAP_SASL= yes
WITH_APACHE2=   yes
APACHE_PORT=www/apache22
WITH_MODPERL2=  yes

If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif 


If editing /etc/make.conf gives you too much grief, then look at the
ports-mgmt/portconf tool -- it works the same way (ie. by setting
variables in the make system) but has a user interface that attempts
to be a bit more friendly.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


ports-mgmt/portmaster question

2008-12-24 Thread B. Cook

Is there a way to pass make args (other than -m) for each port?

For example if I use -m BUILD_STATIC=YES and -m BUILD_OPTIMIZED=YES for 
mysql50-server.. other than remembering that I did that.. is there 
someway to have portmaster read its portmaster.rc and get that information?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"