From owner-freebsd-ports@FreeBSD.ORG Wed Dec 21 09:26:08 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3EC816A41F; Wed, 21 Dec 2005 09:26:08 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: from mail2out.barnet.com.au (mail2out.barnet.com.au [202.83.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 919E943D69; Wed, 21 Dec 2005 09:26:07 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail2out.barnet.com.au (Postfix, from userid 27) id 9F9F77073B2; Wed, 21 Dec 2005 20:26:05 +1100 (EST) X-Viruscan-Id: <43A91FAD00017564CEDCBA@BarNet> Received: from mail2-auth.barnet.com.au (mail2.barnet.com.au [202.83.176.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id 5FC687073AD; Wed, 21 Dec 2005 20:26:05 +1100 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) by mail2-auth.barnet.com.au (Postfix) with ESMTP id D1BBC7073AB; Wed, 21 Dec 2005 20:26:04 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 731DA183A; Wed, 21 Dec 2005 20:24:30 +1100 (EST) Date: Wed, 21 Dec 2005 20:24:30 +1100 From: Edwin Groothuis To: ale@freebsd.org Message-ID: <20051221092430.GA30569@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: ports@freebsd.org Subject: USE_PHP *after* bsd.port.pre.mk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 09:26:09 -0000 For a port with OPTIONS (pgsql vs mysql) and PHP, I want to set USE_PHP *after* bsd.port.pre.mk is included. bsd.php.mk says: # Adding 'USE_PHP=yes' to a port includes this Makefile after bsd.ports.pre.mk. bsd.port.mk says: # Start of pre-makefile section. .if !defined(AFTERPORTMK) [...] .if defined(USE_PHP) .include "${PORTSDIR}/Mk/bsd.php.mk" .endif [...] .endif # End of pre-makefile section. and no further includes of bsd.php.mk "USE_PHP=yes" before bsd.port.pre.mk gives me: depends on file: /usr/local/include/php/main/php.h "USE_PHP=pgsql" before bsd.port.pre.mk gives me: depends on file: /usr/local/include/php/main/php.h depends on file: /usr/local/lib/php/20020429/pgsql.so "USE_PHP=pgsql" after bsd.port.pre.mk gives me: ... So yeah, what is the trick? (besides from submitting my bsd.options.mk) -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/