From owner-freebsd-ports@FreeBSD.ORG Wed Jul 27 05:48:49 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 6949816A41F for ; Wed, 27 Jul 2005 05:48:49 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id F13BF43D48 for ; Wed, 27 Jul 2005 05:48:48 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: (qmail 3393 invoked from network); 27 Jul 2005 05:48:48 -0000 Received: from aldan.algebra.com (HELO blue.virtual-estates.net) ([216.254.65.224]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 27 Jul 2005 05:48:48 -0000 Received: from blue.virtual-estates.net (blue [127.0.0.1]) by blue.virtual-estates.net (8.13.3/8.13.3) with ESMTP id j6R5mkH9043493; Wed, 27 Jul 2005 01:48:46 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by blue.virtual-estates.net (8.13.3/8.13.3/Submit) id j6R5mkFV043492; Wed, 27 Jul 2005 01:48:46 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) X-Authentication-Warning: blue.virtual-estates.net: mi set sender to mi+kde@aldan.algebra.com using -f From: Mikhail Teterin To: Adam Weinberger Date: Wed, 27 Jul 2005 01:48:45 -0400 User-Agent: KMail/1.8.1 References: <200507262156.43233.mi+mx@aldan.algebra.com> <200507262327.24793.mi+mx@aldan.algebra.com> <42E718FE.4070506@magnesium.net> In-Reply-To: <42E718FE.4070506@magnesium.net> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: ports@freebsd.org, Mark Linimon 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 05:48:49 -0000 On Wednesday 27 July 2005 01:17 am, Adam Weinberger wrote: = That is indeed a very good - albeit sneaky - trick! I wonder, what portlint's intention is in this case. Is it to really prevent things like I wanted in GraphicsMagick or just to make ports' Makefiles more uniform (in which case this should be a warning, not a "fatal" error). = The main problem that I find with the OPTIONS chicken-and-egg problem = is that you can't modify OPTIONS based on the presence of files = because, when OPTIONS processing takes place, LOCALBASE and X11BASE = aren't defined. Do you have a good sneaky trick for that case? There is no chicken-and-egg problem, because the variables are not expanded until used (or until assigned to others with ``:=''). How about: OPTIONS=MEOW "Use libMEOW for additional purring?" ${MEOW} .include .if exists(${LOCALBASE}/lib/libMEOW.so) MEOW= on .else MEOW= off .endif .include Does this work? Is it, what you are asking about? -mi