From owner-freebsd-ports Fri Dec 15 19:57:53 2000 From owner-freebsd-ports@FreeBSD.ORG Fri Dec 15 19:57:51 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id D79CE37B402 for ; Fri, 15 Dec 2000 19:57:50 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.9.3/8.9.3) with SMTP id WAA87400; Fri, 15 Dec 2000 22:57:49 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <002a01c06714$9d6ce460$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Joseph Scott" Cc: References: Subject: Re: Using HAS_CONFIGURE to enforce PREFIX Date: Fri, 15 Dec 2000 22:59:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hummmm, I tried a `make install PREFIX=/tmp/port` and in some > cases all of the port would still go to /usr/local, in others only part > would go to PREFIX, the rest to /usr/local. There's actually a good reason for this! Let's use ftp/cftp as an example. When you do a 'make configure', GNU configure will embed the given value of PREFIX into all the makefiles it generates. Thus, when you do a 'make install', it will install using the value of PREFIX that was given at configure-time, and ignore the one given on the 'make install' command line. However, this port has a post-install target in the main Makefile, which uses PREFIX as well. However, note that the post-install target will use the value of PREFIX given on the command line, even though it may differ from the one given to the configure target when the port was originally built. This is why you could get files installed into both /usr/local and /some/other/dir from one port. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message