From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 13:36:49 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 D4E2C1065671 for ; Thu, 7 Aug 2008 13:36:49 +0000 (UTC) (envelope-from fbsd06+YS=7bb52620@mlists.homeunix.com) Received: from fallback-in1.mxes.net (fallback-out1.mxes.net [216.86.168.190]) by mx1.freebsd.org (Postfix) with ESMTP id A805B8FC19 for ; Thu, 7 Aug 2008 13:36:49 +0000 (UTC) (envelope-from fbsd06+YS=7bb52620@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by fallback-in1.mxes.net (Postfix) with ESMTP id 8F28E164686 for ; Thu, 7 Aug 2008 09:21:32 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id C7DE223E49A for ; Thu, 7 Aug 2008 09:21:30 -0400 (EDT) Date: Thu, 7 Aug 2008 14:21:26 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080807142126.1b67ceb4@gumby.homeunix.com.> In-Reply-To: <489AAC87.8040200@adminlife.net> References: <489AAC87.8040200@adminlife.net> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Add CONFIGURE_ARGS option for port in make.conf 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: Thu, 07 Aug 2008 13:36:49 -0000 On Thu, 07 Aug 2008 10:04:23 +0200 Matthias Kellermann wrote: > Hi list, > > I want to compile a port with an option that is not controllable > through the FreeBSD Makefile or with make config. > ... > So I added an option to make.conf(5): > > .if ${.CURDIR:M*/lang/php4} > CONFIGURE_ARGS+=--with-mime-magic > .endif > > Unfortonately, this does not work. >... > Any ideas whats wrong here? make.conf is read before the makefile. The use of "CONFIGURE_ARGS=" in the port makefile means that any change to CONFIGURE_ARGS made in make.conf is lost. I think you'll have to maintain a patch against the port makefile.