From owner-freebsd-ports@FreeBSD.ORG Sat Jul 31 03:02:25 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 4F5E816A4CE for ; Sat, 31 Jul 2004 03:02:25 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA8143D4C for ; Sat, 31 Jul 2004 03:02:24 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so7277rnl for ; Fri, 30 Jul 2004 20:02:13 -0700 (PDT) Received: by 10.38.78.51 with SMTP id a51mr307885rnb; Fri, 30 Jul 2004 12:55:33 -0700 (PDT) Message-ID: <790a9fff04073012556938b2c3@mail.gmail.com> Date: Fri, 30 Jul 2004 14:55:33 -0500 From: Scot Hetzel To: Ion-Mihai Tetcu In-Reply-To: <20040730223646.5db579fe@it.buh.tecnik93.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040730223646.5db579fe@it.buh.tecnik93.com> 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: Sat, 31 Jul 2004 03:02:25 -0000 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. Also you may need to use three \ ( \\\$ ). 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. Scot