From owner-freebsd-ports@FreeBSD.ORG Fri Sep 9 01:22:00 2005 Return-Path: X-Original-To: freebsd-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 AE56F16A41F for ; Fri, 9 Sep 2005 01:22:00 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id C60E443D5D for ; Fri, 9 Sep 2005 01:21:57 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so1712275wra for ; Thu, 08 Sep 2005 18:21:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=f7aDb5fOyGWLQUno5EYb0njq8yEQLUfwkTHWORi4Qi+oQvjLUaWt7XU99gIUd3h2ZIxb+9Aken/REpsDnspnpndYM+uDLIQ+gAKnpPjrBmvj1nlY1V1U5OgjuxJG02zJ2OBwglo+OnG3tKCUKjc+gohNt13AvE+8ahLLMxr/lR0= Received: by 10.54.4.6 with SMTP id 6mr86070wrd; Thu, 08 Sep 2005 18:21:57 -0700 (PDT) Received: by 10.54.94.16 with HTTP; Thu, 8 Sep 2005 18:21:57 -0700 (PDT) Message-ID: <34bd75410509081821d0ba413@mail.gmail.com> Date: Thu, 8 Sep 2005 20:21:57 -0500 From: Brian Kee To: freebsd-ports@freebsd.org In-Reply-To: <34bd754105090816056787df26@mail.gmail.com> Mime-Version: 1.0 References: <34bd7541050908152822793651@mail.gmail.com> <34bd754105090816056787df26@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Makefile: Trouble with EXTRA_PATCHES X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: brianakee@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 01:22:00 -0000 Ok, a simple segment like the following resolved my problem. pre-patch: ${SED} -i .orig -e s,file.c,path/to/file.c, ${EXTRA_PATCHES} I placed this within the .if/.endif block for the specific patch. I will not say that this is elegant, but it solved the current problem. No= w=20 on to the next one... Thank You,=20 Brian A. Kee On 9/8/05, Brian Kee wrote:=20 >=20 > Well, I found a fairly simple solution the problem. If I manually modify= =20 > the patch file and add the correct relative path to the file listing in t= he=20 > top couple of lines within the patch file.=20 > e.g. > -- filetopatch.c > changed to > -- src/filetopatch.c > the problem corrects itself.=20 > So, I now have two options.=20 > 1. I can contact the maintainer of this patch and have him make these=20 > corrections. > 2. Somehow figure out how to directly modify this file from within the=20 > Makefile. > Any suggestions on how this can be accomplished within the Makefile? > Maybe a post-extract or pre-patch command? I see some referenced command= =20 > within bsd.port.mk , but I do not see them defined= =20 > anywhere. >=20 >