From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 14:04:48 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 22BF41065677 for ; Thu, 7 Aug 2008 14:04:48 +0000 (UTC) (envelope-from mk@adminlife.net) Received: from mx.adminlife.net (mx.adminlife.net [85.214.17.98]) by mx1.freebsd.org (Postfix) with ESMTP id D77FF8FC1E for ; Thu, 7 Aug 2008 14:04:47 +0000 (UTC) (envelope-from mk@adminlife.net) Received: from [192.168.0.51] (p54881FD7.dip0.t-ipconnect.de [84.136.31.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: matthias@adminlife.net) by mx.adminlife.net (Postfix) with ESMTPSA id D2DB0125401 for ; Thu, 7 Aug 2008 16:04:29 +0200 (CEST) Message-ID: <489B00FE.4020605@adminlife.net> Date: Thu, 07 Aug 2008 16:04:46 +0200 From: Matthias Kellermann User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <489AAC87.8040200@adminlife.net> <20080807142126.1b67ceb4@gumby.homeunix.com.> In-Reply-To: <20080807142126.1b67ceb4@gumby.homeunix.com.> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 14:04:48 -0000 RW wrote: > 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. Thanks, but I thought CONFIGURE_ARGS+= should add this option and not overwrite the options from the Makefile. Therefore the plus-sign. Regards, Matthias