Date: Sun, 28 Dec 2008 12:09:20 +0300 From: Sergey Kovalev <freebsd@kovalev.com.ru> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: "B. Cook" <bcook@poughkeepsieschools.org>, freebsd-questions@freebsd.org Subject: Re: ports-mgmt/portmaster question Message-ID: <49574240.7040502@kovalev.com.ru> In-Reply-To: <49573C0D.7030405@infracaninophile.co.uk> References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> <49573C0D.7030405@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49574240.7040502>