Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 15:55:39 -0400
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: How to escape ${something} (not to expand it) in a Makefile ?
Message-ID:  <20040730195539.GP80286@toxic.magnesium.net>
In-Reply-To: <20040730223646.5db579fe@it.buh.tecnik93.com>
References:  <20040730223646.5db579fe@it.buh.tecnik93.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> (07.30.2004 @ 1536 PST): Ion-Mihai Tetcu said, in 0.7K: <<
> 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'
>> end of "How to escape ${something} (not to expand it) in a Makefile ?" from Ion-Mihai Tetcu <<

First of all, that's not a valid use of RUN_DEPENDS. That looks like
stuff that should be added to CONFIGURE_ARGS.

Try:

.include <bsd.port.pre.mk>
CONFIGURE_ARGS+= --with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver \
		 -e -r $${sender} -m $${extension} $${user} $$u
.include <bsd.port.post.mk>

or something to that effect.

# Adam


--
Adam Weinberger
adamw@magnesium.net || adamw@FreeBSD.org
adamw@vectors.cx    ||   adamw@gnome.org
http://www.vectors.cx



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040730195539.GP80286>