From owner-freebsd-ports@FreeBSD.ORG Fri Jul 30 23:34:45 2004 Return-Path: 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 94CEC16A4CE for ; Fri, 30 Jul 2004 23:34:45 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B058943D1F for ; Fri, 30 Jul 2004 23:34:44 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 3200 invoked by uid 89); 30 Jul 2004 23:34:18 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 30 Jul 2004 23:34:18 -0000 Received: from localhost (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 63B8F149; Sat, 31 Jul 2004 02:34:16 +0300 (EEST) Received: from it.buh.tecnik93.com ([127.0.0.1]) by localhost (it.buh.tecnik93.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 50382-09; Sat, 31 Jul 2004 02:34:16 +0300 (EEST) Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id ADE396D; Sat, 31 Jul 2004 02:34:15 +0300 (EEST) Date: Sat, 31 Jul 2004 02:34:15 +0300 From: Ion-Mihai Tetcu To: Scot Hetzel Message-Id: <20040731023415.0ad8ed19@it.buh.tecnik93.com> In-Reply-To: <790a9fff04073012556938b2c3@mail.gmail.com> References: <20040730223646.5db579fe@it.buh.tecnik93.com> <790a9fff04073012556938b2c3@mail.gmail.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at it.buh.cameradicommercio.ro cc: ports@freebsd.org Subject: Re: How to escape ${something} (not to expand it) in a Makefile ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 23:34:45 -0000 On Fri, 30 Jul 2004 14:55:33 -0500 Scot Hetzel wrote: > On Fri, 30 Jul 2004 22:36:46 +0300, Ion-Mihai Tetcu > wrote: > > Hi, > > > > I'm out of ideas with this. Bellow I need to have ${LOCALBASE} expanded > > to its value and the rest of $... to be passed verbatim. > > Each combination of quoting and escaping I've tried the last 2 1/2 hours > > dons't work. Could someone please point me to the right doc to read or > > explain how does this work ? > > > > RUN_DEPENDS+='--with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} $u' > > > You would use \$ to escape the dollar sign in a Makefile. Nop, like this I get .... -e -r -m - treated like vars. > Also you may need to use three \ ( \\\$ ). I'll try this one. > Also is the above RUN_DEPENDS for a port that your working on? > If it is, then the RUN_DEPENDS is wrong, it is supposed to point to a > program/port that it depends on at run time. > > RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/security/cyrus-sasl > > Then you use a CONFIGURE_ARG for the --with-delivery-agent setting. Yes, copy/paste mistake. Thanks, -- IOnut Unregistered ;) FreeBSD "user"