From owner-freebsd-ports@FreeBSD.ORG Fri Feb 10 13:53:52 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 D017D16A422; Fri, 10 Feb 2006 13:53:52 +0000 (GMT) (envelope-from freebsd@troback.com) Received: from devil.troback.com (c-195-216-040-156.cust.thalamus.net [195.216.40.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B2443D45; Fri, 10 Feb 2006 13:53:52 +0000 (GMT) (envelope-from freebsd@troback.com) Received: from server25.gelita.swe (server25.extraco.gelita-se.local [10.46.150.25]) by devil.troback.com (Postfix) with ESMTP id 60F29114A9; Fri, 10 Feb 2006 14:53:14 +0100 (CET) Date: Fri, 10 Feb 2006 14:53:49 +0100 From: Anders Troback To: Sam Lawrance Message-ID: <20060210145349.3f33e170@server25.gelita.swe> In-Reply-To: References: <20060210124509.69332182@server25.gelita.swe> <20060210122601.GA64449@qlovarnika.bg.datamax> <20060210140902.2d64db73@server25.gelita.swe> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.11; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:53:53 -0000 On Sat, 11 Feb 2006 00:16:15 +1100 Sam Lawrance wrote: >=20 > On 11/02/2006, at 12:09 AM, Anders Troback wrote: >=20 > > 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?=3D ${LOCALBASE}/bigsister > >> CONFIGURE_TARGET=3D --build=3D${MACHINE_ARCH}-portbld-freebsd${OSREL} > >> CONFIGURE_ARGS=3D --with-cgi=3D${BS_CGI_PATH} \ > >> --with-perlext=3D${BS_PERL_EXT} \ > >> --with-url=3D${BS_URL} \ > >> --with-user=3D${BS_USER} > >> > >> - -- > >> Vasil Dimov > >> -----BEGIN PGP SIGNATURE----- > >> > >> iD8DBQFD7IZZFw6SP/bBpCARAs8VAJoDk2EOFsP5Qe6RG0wQxbwdutEp4wCggo58 > >> F2lN3SZ1Rr6c+bRTSPYsIAw=3D > >> =3Dq+IX > >> -----END PGP SIGNATURE----- > > > > I have now:-) > > > > That fixed it! > > > > Is this a "legal" way to go? >=20 > No, it's best that you don't set PREFIX (especially like that - what =20 > happens if someone comes along and does "make install PREFIX=3D/usr/=20 > opt"?). >=20 > Just passing PREFIX in CONFIGURE_ARGS may not be enough. You should =20 > probably also do: >=20 > MAKE_ENV+=3D PREFIX=3D${PREFIX}/${PORTNAME} >=20 > Otherwise, the submake will get PREFIX=3D${PREFIX} (which is why your =20 > port installed into /usr/local). >=20 That don't work(?), can you please have a look on my Makefile (attached)?! So far only the $LOCALBASE variant that Vasil Dimov suggested are working!=20 --=20 Anders Trob=E4ck http://www.troback.com/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" --------------------------------------------