From owner-freebsd-ports@FreeBSD.ORG Fri Sep 23 01:10:17 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 BCEA516A41F for ; Fri, 23 Sep 2005 01:10:17 +0000 (GMT) (envelope-from cyberbotx@cyberbotx.com) Received: from smtp110.sbc.mail.mud.yahoo.com (smtp110.sbc.mail.mud.yahoo.com [68.142.198.209]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AD6143D46 for ; Fri, 23 Sep 2005 01:10:17 +0000 (GMT) (envelope-from cyberbotx@cyberbotx.com) Received: (qmail 27012 invoked from network); 23 Sep 2005 01:10:16 -0000 Received: from unknown (HELO metroid) (cyberbotx@sbcglobal.net@68.79.98.32 with login) by smtp110.sbc.mail.mud.yahoo.com with SMTP; 23 Sep 2005 01:10:16 -0000 Message-ID: <011d01c5bfdb$a43bc250$fe02a8c0@metroid> From: "Naram Qashat" To: "Chuck Swiger" References: <011401c5bfda$1e6505c0$fe02a8c0@metroid> <433355B2.1040205@mac.com> Date: Thu, 22 Sep 2005 21:10:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: ports@FreeBSD.org Subject: Re: About patching ports 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: Fri, 23 Sep 2005 01:10:17 -0000 Cool, thanks for the quick response. I really appreciate it. :P Naram Qashat ----- Original Message ----- From: "Chuck Swiger" To: "Naram Qashat" Cc: Sent: Thursday, September 22, 2005 09:09 PM Subject: Re: About patching ports > Naram Qashat wrote: > > Just a quick question really. What's the best way to go about handling > > patching of files that need PREFIX substituted into the file after the patch > > has been applied? Like for example, you replace a path in a source file > > with %%PREFIX%% and you want that replaced after the patch is done. I don't > > think using SUB_FILES would work in this case. Any help would be > > appreciated. > > Something like: > > USE_REINPLACE= yes > > post-patch: > ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ > s|%%CC%%|${CC}|g ; \ > s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile > > See > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html > for more details... > > -- > -Chuck > > >