From owner-freebsd-ports@FreeBSD.ORG Mon Mar 22 06:37:46 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4257106564A for ; Mon, 22 Mar 2010 06:37:46 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 707778FC14 for ; Mon, 22 Mar 2010 06:37:46 +0000 (UTC) Received: from wald.nfv.gwdg.de ([134.76.242.31] helo=pc028.nfv) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NtbGh-0003VG-O3; Mon, 22 Mar 2010 07:37:43 +0100 Message-ID: <4BA7107F.1050302@gwdg.de> Date: Mon, 22 Mar 2010 07:38:55 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.1.8) Gecko/20100302 Thunderbird/3.0.3 MIME-Version: 1.0 To: Tijl Coosemans References: <201003212142.16336.tijl@coosemans.org> In-Reply-To: <201003212142.16336.tijl@coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: Eitan Adler , freebsd-ports@freebsd.org Subject: Re: help with sed for post-patch 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: Mon, 22 Mar 2010 06:37:46 -0000 Am 21.03.2010 21:42 (UTC+1) schrieb Tijl Coosemans: > On Sunday 21 March 2010 21:14:11 Eitan Adler wrote: >> I need to change >> set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib) >> to >> set(LIBRARY_OUTPUT_PATH libdata/lib) >> >> Here is what I have >> ${REINPLACE_CMD} -E 's/\$\{CMAKE_BINARY_DIR\}\/lib/libdata\/lib/' >> ${WRKSRC}/CMakeLists.txt >> >> how could I fix this? > > In a Makefile you have to replace $ by $$. > > ${REINPLACE_CMD} 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,' ${WRKSRC}/CMakeLists.txt and, as far as I understand, put "-e" between command and the rest (see Porters Handbook, chapter 4.4): ${REINPLACE_CMD} -e 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,' ${WRKSRC}/CMakeLists.txt