From owner-freebsd-ports@FreeBSD.ORG Wed Jul 27 03:17:19 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 9468816A41F for ; Wed, 27 Jul 2005 03:17:19 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: from mail3out.barnet.com.au (mail3out.barnet.com.au [202.83.176.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23F6543D46 for ; Wed, 27 Jul 2005 03:17:18 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail3out.barnet.com.au (Postfix, from userid 27) id 1B344877C94; Wed, 27 Jul 2005 13:17:17 +1000 (EST) X-Viruscan-Id: <42E6FCBD000067FDE29FA3@BarNet> Received: from mail3-auth.barnet.com.au (mail3.barnet.com.au [202.83.176.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK)) by mail3.barnet.com.au (Postfix) with ESMTP id E9D49877C8F; Wed, 27 Jul 2005 13:17:16 +1000 (EST) Received: from k7.mavetju (252-131-222-203.rev.techex.net.au [203.222.131.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "edwin.adsl.barnet.com.au", Issuer "BarNet Root Certificate Authority" (not verified)) by mail3-auth.barnet.com.au (Postfix) with ESMTP id 98407877C91; Wed, 27 Jul 2005 13:17:12 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id F361F612B; Wed, 27 Jul 2005 13:17:10 +1000 (EST) Date: Wed, 27 Jul 2005 13:17:10 +1000 From: Edwin Groothuis To: Mikhail Teterin Message-ID: <20050727031710.GE1186@k7.mavetju> References: <200507262156.43233.mi+mx@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507262156.43233.mi+mx@aldan.algebra.com> User-Agent: Mutt/1.5.9i 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:17:19 -0000 On Tue, Jul 26, 2005 at 09:56:43PM -0400, Mikhail Teterin wrote: > Hello! You are the portlint maintainer, so I'll ask you directly :-) > > I'd like to set the default value for a new port's OPTION depending on the > ARCH ("on" for i386, "off" for others). > > However, portlint would not let me. ARCH can only be used _after_ > including mk.ports.pre.mk, and OPTIONS can only be modified _before_ it. > > Any suggestions? Can I just ignore this "fatal" issue? I would just add it to the options statement: OPTIONS= foo "Use foo (i386 only)" on \ bar "Use bar (PowerPC only)" off Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/