From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 08:20:59 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 E09BB106564A for ; Thu, 7 Aug 2008 08:20:59 +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 A3EF88FC14 for ; Thu, 7 Aug 2008 08:20:59 +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 53B7F125401 for ; Thu, 7 Aug 2008 10:04:08 +0200 (CEST) Message-ID: <489AAC87.8040200@adminlife.net> Date: Thu, 07 Aug 2008 10:04:23 +0200 From: Matthias Kellermann User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 08:21:00 -0000 Hi list, I want to compile a port with an option that is not controllable through the FreeBSD Makefile or with make config. The specific port is lang/php4 and the option I want to add is --with-mime-magic (I know, php4 is old and not supported after 8.8.08 and --with-mime-magic is deprecated, but thats another story...). 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. When I add this option in the Makefile it works. The relevant part looks like this: CONFIGURE_ARGS= --enable-versioning \ --with-mime-magic \ --enable-memory-limit \ --with-layout=GNU \ --with-config-file-scan-dir=${PREFIX}/etc/php \ --disable-all \ --program-prefix="" Any ideas whats wrong here? Regards, Matthias