From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 09:25:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A2D51065670 for ; Sun, 28 Dec 2008 09:25:37 +0000 (UTC) (envelope-from freebsd@kovalev.com.ru) Received: from fallback-smtp.hosting.agava.net (smtp3.hosting.agava.net [89.108.104.103]) by mx1.freebsd.org (Postfix) with ESMTP id E21488FC13 for ; Sun, 28 Dec 2008 09:25:36 +0000 (UTC) (envelope-from freebsd@kovalev.com.ru) Received: from smtp.hosting.agava.net (unknown [10.0.0.2]) by fallback-smtp.hosting.agava.net (Postfix) with ESMTP id 9E4E613BEF for ; Sun, 28 Dec 2008 09:09:24 +0000 (UTC) Received: from cp115.agava.net (cp115.agava.net [89.108.67.135]) by smtp.hosting.agava.net (Postfix) with ESMTP id 4C5C81E58C; Sun, 28 Dec 2008 09:09:22 +0000 (UTC) Received: from [77.108.92.110] (helo=[10.51.33.199]) by cp115.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LGrg6-0005w9-Q4; Sun, 28 Dec 2008 12:11:18 +0300 Message-ID: <49574240.7040502@kovalev.com.ru> Date: Sun, 28 Dec 2008 12:09:20 +0300 From: Sergey Kovalev User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Matthew Seaman References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> <49573C0D.7030405@infracaninophile.co.uk> In-Reply-To: <49573C0D.7030405@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: 7bit Cc: "B. Cook" , freebsd-questions@freebsd.org Subject: Re: ports-mgmt/portmaster question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 09:25:37 -0000 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.