From owner-freebsd-ports@FreeBSD.ORG Mon Feb 13 06:43:44 2006 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 AB1C716A420; Mon, 13 Feb 2006 06:43:44 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1749743D48; Mon, 13 Feb 2006 06:43:43 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 01162B833; Mon, 13 Feb 2006 08:43:41 +0200 (EET) Received: (nullmailer pid 41309 invoked by uid 1002); Mon, 13 Feb 2006 06:43:41 -0000 Date: Mon, 13 Feb 2006 08:43:41 +0200 From: Vasil Dimov To: Anders Troback Message-ID: <20060213064341.GA41133@qlovarnika.bg.datamax> References: <20060210124509.69332182@server25.gelita.swe> <20060210122601.GA64449@qlovarnika.bg.datamax> <20060210140902.2d64db73@server25.gelita.swe> <20060210133808.GB65207@qlovarnika.bg.datamax> <20060210201507.7855ce69@devil.troback.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20060210201507.7855ce69@devil.troback.com> X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Cc: ports@freebsd.org Subject: Re: PREFIX problems... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 06:43:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Feb 10, 2006 at 08:15:07PM +0100, Anders Troback wrote: > > I did this with LOCALBASE as you told me and the port installs just > fine but now I have lots of empty folders: > > /usr/local/bigsister/libdata > /usr/local/bigsister/include > /usr/local/bigsister/libexec > etc. > > do you know know where the are coming from and/or how I cope with them? > Maybe you are looking for NO_MTREE=yes (bsd.port.mk is your friend) By the way I discussed that issue with some people and it showed that PREFIX?=${LOCALBASE}/bigsister has some disadvantages like that if one types ``make PREFIX=/home/joe'' for example, then the port will not be installed in its own bigsister/ subdirectory (as it does by default) and /home/joe will get populated with all the bigsister stuff. Using CONFIGURE_ARGS=--prefix=${PREFIX}/bigsister has also some disadvantages like that if one types ``make PREFIX=/home/joe'' one would expect executables to be placed in /home/joe/bin/ rather than /home/joe/bigsister/bin/ You see - both methods have some disadvantages. The perfect solution would be to patch bigsister to be hier(7) compatible - e.g. not to install *.pm files in bin/, install documentation in ${DOCSDIR}, man pages in ${MANPREFIX}, miscellaneous data in ${DATADIR} and configuration stuff in ${PREFIX}/etc/ or ${PREFIX}/etc/bigsister. Happy hacking ;-) - -- Vasil Dimov -----BEGIN PGP SIGNATURE----- iD8DBQFD8CqdFw6SP/bBpCARAryKAJ9r9ViV1YGEwjlz7xlpQoHhs8x4LwCdGtxY 4dzD+rtyDJfBBpMir4/AvFM= =N9Ta -----END PGP SIGNATURE-----