ports-mgmt/portmaster question
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Dec 28 08:43:09 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081228/f850afb9/signature.pgp
More information about the freebsd-questions
mailing list