From owner-freebsd-ports@FreeBSD.ORG Thu Sep 2 15:59:26 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 A22AF16A4CE for ; Thu, 2 Sep 2004 15:59:26 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-49-192.dynamic.qsc.de [212.202.49.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DE2543D4C for ; Thu, 2 Sep 2004 15:59:26 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-11.local ([172.16.0.11]) by fillmore.dyndns.org with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.42 (FreeBSD)) id 1C2tzf-000DuF-8O; Thu, 02 Sep 2004 17:59:25 +0200 Date: Thu, 2 Sep 2004 17:59:41 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Mike Patterson From: Oliver Eikemeier In-Reply-To: <41372013.2070203@unb.ca> Message-Id: <19DD9455-FCF9-11D8-B720-00039312D914@fillmore-labs.com> Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: freebsd-ports@freebsd.org Subject: Re: PREFIX "cleverness" 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, 02 Sep 2004 15:59:26 -0000 Mike Patterson wrote: > I use quotation marks because I'm not certain what I intend to do is > clever, really, but it would make my life a lot easier. > > I'm trying to make ports install themselves to something like > PREFIX/portname/, so that libtool15's binary would be > PREFIX/libtool15/bin and its man pages would be PREFIX/libtool15/man, > etc. make PREFIX='/usr/local/${PORTNAME}' install ... although it seems to be smarter to use LATEST_LINK instead of the ports name. > A quick read through the handbook and bsd.ports.mk imply that there's no > current way to do it, but perhaps I missed something. I'd be willing to > try hacking up Mk bits (either for committing or just for myself). You need to build a link farm from LOCALBASE to the files installed by your port, since other ports expect them to be there. Another consequence is that new CONFLICTS checking routines are required. > Or am I insane for wanting to force ports infrastructure to conform to > this sort of localism? Your degree of insanity depends on just what you are trying to accomplish. If you want to do this `just because it can be done' - yes. If you believe it will better separate the packing lists of ports - maybe. If you attempt to pkgsrcify the FreeBSD ports collection - who knows. -Oliver