From owner-freebsd-questions@FreeBSD.ORG Sat Dec 27 23:48:54 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 646C2106567A for ; Sat, 27 Dec 2008 23:48:54 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 380EC8FC08 for ; Sat, 27 Dec 2008 23:48:54 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 73A17AFBC02; Sat, 27 Dec 2008 14:48:53 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 27 Dec 2008 14:48:53 -0900 User-Agent: KMail/1.9.10 References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> In-Reply-To: <49522C7B.1070101@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> Cc: "B. Cook" 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: Sat, 27 Dec 2008 23:48:54 -0000 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.