From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 12:08:23 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 9402D16A4CE for ; Thu, 17 Jun 2004 12:08:23 +0000 (GMT) Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 50DC643D5A for ; Thu, 17 Jun 2004 12:08:22 +0000 (GMT) (envelope-from neuhauser@chello.cz) Received: (qmail 20190 invoked by uid 0); 17 Jun 2004 12:07:49 -0000 Received: from r3al16.mistral.cz (HELO isis.wad.cz) (213.220.229.16) by smtp.dkm.cz with SMTP; 17 Jun 2004 12:07:49 -0000 Received: by isis.wad.cz (Postfix, from userid 1001) id 5A4DD2FDA01; Thu, 17 Jun 2004 14:07:49 +0200 (CEST) Date: Thu, 17 Jun 2004 14:07:49 +0200 From: Roman Neuhauser To: Dan Langille Message-ID: <20040617120749.GA2664@isis.wad.cz> Mail-Followup-To: Dan Langille , ports@FreeBSD.org References: <40D03202.11738.76559182@localhost> <40D14B14.5529.7A9F944C@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D14B14.5529.7A9F944C@localhost> User-Agent: Mutt/1.5.6i cc: ports@FreeBSD.org Subject: Re: HEADS UP - master/slave ports 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: Thu, 17 Jun 2004 12:08:23 -0000 # dan@langille.org / 2004-06-17 07:41:08 -0400: > On 17 Jun 2004 at 12:27, Roman Neuhauser wrote: > > > # dan@langille.org / 2004-06-16 11:41:54 -0400: > > > +MASTERPORT!= ${ECHO_CMD} "${_MASTERDIR}" | ${SED} -Ee 's;^.*/([^/]+/[^/]+)/?$$;\1;' > > > > You don't need the sed, or rely on the fact that the category > > hierarchy is flat. Instead: > > > > _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}" > > MASTERPORT= ${MASTERDIR:S#^${_REALPORTSDIR}##} > > I apologise for not giving credit to Mark Linimon for patch. > > Roman: I tried your patch. Here is what is does: > > [dan@polo:~/ports/www/mod_php4] $ make -V MASTERPORT -f ./Makefile > PORTSDIR=~/ports LOCALBASE=/nonexistentlocal X11BASE=/nonexistentx > Unknown modifier '`' replace the hashes, e. g.: MASTERPORT= ${MASTERDIR:S,^${_REALPORTSDIR}/,,} -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html