From owner-freebsd-ports@FreeBSD.ORG Wed Jul 27 03:27:43 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 E495816A41F for ; Wed, 27 Jul 2005 03:27:43 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A91143D45 for ; Wed, 27 Jul 2005 03:27:43 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: (qmail 32329 invoked from network); 27 Jul 2005 03:27:43 -0000 Received: from aldan.algebra.com ([216.254.65.224]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 27 Jul 2005 03:27:42 -0000 Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j6R3RbH0024360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Jul 2005 23:27:38 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j6R3RUXs079846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 26 Jul 2005 23:27:31 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.3/8.13.3) with ESMTP id j6R3RPB2066336; Tue, 26 Jul 2005 23:27:25 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.3/8.13.3/Submit) id j6R3ROkS066335; Tue, 26 Jul 2005 23:27:24 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Mark Linimon Date: Tue, 26 Jul 2005 23:27:24 -0400 User-Agent: KMail/1.8.1 References: <200507262156.43233.mi+mx@aldan.algebra.com> <20050727024231.GA18447@soaustin.net> In-Reply-To: <20050727024231.GA18447@soaustin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507262327.24793.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV devel-20050525/993/Tue Jul 26 03:28:36 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: ports@freebsd.org Subject: Re: a portlint dilemma 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, 27 Jul 2005 03:27:44 -0000 > There are some chicken-and-egg problems like this in bsd.port.mk (well, > the part that is invoked by bsd.port.pre.mk). At one time I understood > which each of them was but I haven't looked at them in a long time. Actually, I think, I found the way. Look at the new GraphicsMagick port. portlint would've raised hell about this trick (if it new about variable modifiers), but that would be groundless. ARCH is not expanded until OPTIONS is used (by which time ARCH is already known), so things work just fine. A more straightforward way would be to: OPTIONS= MEOW "MEOW?" ${MEOW_on_off} .include .if ${ARCH} == "i386" MEOW_on_off= on .else MEOW_on_off= off .endif .include This is also fooling portlint -- OPTIONS are, in fact, modified after including the ...pre.mk. And there is nothing wrong with that :-) -mi