From owner-freebsd-stable@FreeBSD.ORG Tue Aug 26 23:04:38 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9BD31065671 for ; Tue, 26 Aug 2008 23:04:38 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.123]) by mx1.freebsd.org (Postfix) with ESMTP id 6FF8C8FC12 for ; Tue, 26 Aug 2008 23:04:38 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.2.102] (really [24.175.90.48]) by cdptpa-omta04.mail.rr.com with ESMTP id <20080826230437.EFHR13299.cdptpa-omta04.mail.rr.com@[192.168.2.102]>; Tue, 26 Aug 2008 23:04:37 +0000 Date: Tue, 26 Aug 2008 18:04:36 -0500 From: Paul Schmehl To: chris#@1command.com, freebsd-stable@freebsd.org Message-ID: In-Reply-To: <20080826150525.bqfs1a440cs8s408@webmail.1command.com> References: <20080826124253.7rfp8sb8rcgs0o0o@webmail.1command.com> <91A28195-55BC-4B4C-8382-9A9221AF8CDA@mac.com> <20080826140927.kq3fgpmuw8okw8gw@webmail.1command.com> <20080826150525.bqfs1a440cs8s408@webmail.1command.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) X-Munged-Reply-To: To reply - figure it out MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========0F3B0D311EE9F3F485B6==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: changing a ports final destination via make knobs question... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 23:04:38 -0000 --==========0F3B0D311EE9F3F485B6========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On August 26, 2008 3:05:25 PM -0700 chris#@1command.com wrote: > > Hello, and thank you very much for your reply. > > Yes. After looking closely at the variable, I discovered that also. > So I used the PREFIX=3D/usr/local/php5. But as I build it (via > php5-extensions) > I am not seeing the PREFIX variable reflected. Shouldn't I be using: > make -DPREFIX=3D/usr/local/php5? Or simply hack the Makefile? > If you're trying to force the install of php5 by installing=20 php5-extensions, that's not going to work. Php5 will be built with the=20 default ${LOCALBASE} instead. There are several ways to work around the problem. You can build php5=20 first, with the altered PREFIX, then build php5-extensions with the=20 altered PREFIX. You can set the PREFIX for php5 and php5-extensions in=20 /usr/local/etc/pkgtools.conf (see the extensive notes in the file or read=20 man (5) pkgtools.conf). You can edit the Makefiles for the affected ports, but changing PREFIX in=20 a Makefile is tricky, so testing carefully is required. Furthermore, the=20 Makefiles will be overwritten every time the port is updated, so it's=20 really not the best way to do things. You can even edit /etc/make.conf, but that changes the parameters for all=20 ports. If you plan on doing this often, pkgtools.conf is your best bet. If you=20 plan on doing it once, commandline is probably the easiest and quickest. If you choose to use pkgtools.conf, you'd probably want something like=20 this: MAKE_ARGS =3D { 'lang/php5*' =3D> 'PREFIX=3D/usr/local/php5', } Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ****************************************** WARNING: Check the headers before replying --==========0F3B0D311EE9F3F485B6==========--