From owner-freebsd-ports@FreeBSD.ORG Fri Feb 10 13:16:17 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 5187A16A420; Fri, 10 Feb 2006 13:16:17 +0000 (GMT) (envelope-from lawrance@FreeBSD.org) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A37CB43D46; Fri, 10 Feb 2006 13:16:16 +0000 (GMT) (envelope-from lawrance@FreeBSD.org) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id k1ADGDu1003023; Sat, 11 Feb 2006 00:16:14 +1100 Received: from [61.8.34.153] (ppp2299.dyn.pacific.net.au [61.8.34.153]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id k1ADG9Yx018509; Sat, 11 Feb 2006 00:16:10 +1100 In-Reply-To: <20060210140902.2d64db73@server25.gelita.swe> References: <20060210124509.69332182@server25.gelita.swe> <20060210122601.GA64449@qlovarnika.bg.datamax> <20060210140902.2d64db73@server25.gelita.swe> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Sam Lawrance Date: Sat, 11 Feb 2006 00:16:15 +1100 To: Anders Troback X-Mailer: Apple Mail (2.746.2) Cc: ports@FreeBSD.org, vd@FreeBSD.org Subject: Re: PREFIX problems... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 13:16:17 -0000 On 11/02/2006, at 12:09 AM, Anders Troback wrote: > On Fri, 10 Feb 2006 14:26:01 +0200 > Vasil Dimov wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On Fri, Feb 10, 2006 at 12:45:09PM +0100, Anders Troback wrote: >> ... >>> The former maintainer did some things that portlint don't like, the >>> last line are not .include and when I move down the >>> line the PREFIX are ignored! >>> >>> make install should put all files in $PREFIX/bigsister but when I >>> put .include to the bottom of Makefile make install >>> puts the files in /usr/local. >> ... >> >> Have you tried >> >> PREFIX?= ${LOCALBASE}/bigsister >> CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} >> CONFIGURE_ARGS= --with-cgi=${BS_CGI_PATH} \ >> --with-perlext=${BS_PERL_EXT} \ >> --with-url=${BS_URL} \ >> --with-user=${BS_USER} >> >> - -- >> Vasil Dimov >> -----BEGIN PGP SIGNATURE----- >> >> iD8DBQFD7IZZFw6SP/bBpCARAs8VAJoDk2EOFsP5Qe6RG0wQxbwdutEp4wCggo58 >> F2lN3SZ1Rr6c+bRTSPYsIAw= >> =q+IX >> -----END PGP SIGNATURE----- > > I have now:-) > > That fixed it! > > Is this a "legal" way to go? No, it's best that you don't set PREFIX (especially like that - what happens if someone comes along and does "make install PREFIX=/usr/ opt"?). Just passing PREFIX in CONFIGURE_ARGS may not be enough. You should probably also do: MAKE_ENV+= PREFIX=${PREFIX}/${PORTNAME} Otherwise, the submake will get PREFIX=${PREFIX} (which is why your port installed into /usr/local).