From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 31 18:42:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46356D13; Mon, 31 Dec 2012 18:42:26 +0000 (UTC) (envelope-from masked@internode.on.net) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:6:5]) by mx1.freebsd.org (Postfix) with ESMTP id 40A8D8FC08; Mon, 31 Dec 2012 18:42:24 +0000 (UTC) Received: from ppp221-140.static.internode.on.net (HELO forexamplePC) ([150.101.221.140]) by ipmail05.adl6.internode.on.net with SMTP; 01 Jan 2013 05:12:23 +1030 Message-ID: <674B18C07D96418681C34AD34370F5B6@forexamplePC> From: "Michael Vale" To: "Simon J. Gerraty" References: <20121227180044.7947F58094@chaos.jnpr.net> <641F54E990B14A0AB0A287AE7F810192@forexamplePC> <20121231174308.05BDE58094@chaos.jnpr.net> In-Reply-To: <20121231174308.05BDE58094@chaos.jnpr.net> Subject: Re: Cross Compiling of ports Makefiles. Date: Tue, 1 Jan 2013 05:42:19 +1100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org, freebsd-arch@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2012 18:42:26 -0000 -----Original Message----- From: Simon J. Gerraty Sent: Tuesday, January 01, 2013 4:43 AM To: Michael Vale Cc: freebsd-hackers@freebsd.org ; freebsd-arch@freebsd.org ; freebsd-ports@freebsd.org Subject: Re: Cross Compiling of ports Makefiles. >>One is to have a MAKEOBJDIRPREFIX like option, and redefine every >>target’s DESTDIR ${makeobjDESTDIR} before running do-install. Now i’ve >>yet to complete this stage, but I believe this is the way to do it. > >Would it be sufficient to have an INSTALL_PREFIX and/or INSTALL_DESTDIR >so that DESTDIR can be different during install ? >[I was recently experimenting with something similar...] > >So how would that work? I was assuming a sub-make involved: install: ${MAKE} DESTDIR=${INSTALL_DESTDIR} realinstall Thank-you Simon, that seems to have done the trick. I'll finish up my 'initial' work and submit a patch! ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2637/5998 - Release Date: 12/30/12 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2637/5998 - Release Date: 12/30/12