From owner-freebsd-stable@FreeBSD.ORG Wed Aug 27 02:31:03 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 762E8106566B for ; Wed, 27 Aug 2008 02:31:03 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (mail.1command.com [75.160.109.226]) by mx1.freebsd.org (Postfix) with ESMTP id 08C3C8FC1E for ; Wed, 27 Aug 2008 02:31:02 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id m7R2Uskq018614 for ; Tue, 26 Aug 2008 19:31:00 -0700 (PDT) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m7R2Ur7h018613 for freebsd-stable@freebsd.org; Tue, 26 Aug 2008 19:30:53 -0700 (PDT) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Tue, 26 Aug 2008 19:30:53 -0700 Message-ID: <20080826193053.ertztg97ackskkks@webmail.1command.com> Date: Tue, 26 Aug 2008 19:30:53 -0700 From: chris#@1command.com To: freebsd-stable@freebsd.org References: <20080826124253.7rfp8sb8rcgs0o0o@webmail.1command.com> <91A28195-55BC-4B4C-8382-9A9221AF8CDA@mac.com> <20080826140927.kq3fgpmuw8okw8gw@webmail.1command.com> <20080826150525.bqfs1a440cs8s408@webmail.1command.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: H.R. Communications Internet Messaging System (HCIMS) 4.1 Professional (not for redistribution) / FreeBSD-5.5 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 List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 02:31:03 -0000 Quoting Paul Schmehl : > --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=/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=/usr/local/php5? Or simply hack the Makefile? >> > > If you're trying to force the install of php5 by installing > php5-extensions, that's not going to work. Php5 will be built with > the default ${LOCALBASE} instead. > > There are several ways to work around the problem. You can build > php5 first, with the altered PREFIX, then build php5-extensions with > the altered PREFIX. You can set the PREFIX for php5 and > php5-extensions in /usr/local/etc/pkgtools.conf (see the extensive > notes in the file or read man (5) pkgtools.conf). > > You can edit the Makefiles for the affected ports, but changing > PREFIX in a Makefile is tricky, so testing carefully is required. > Furthermore, the Makefiles will be overwritten every time the port is > updated, so it's really not the best way to do things. > > You can even edit /etc/make.conf, but that changes the parameters for > all ports. > > If you plan on doing this often, pkgtools.conf is your best bet. If > you 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 this: > > MAKE_ARGS = { > 'lang/php5*' => 'PREFIX=/usr/local/php5', > } > Hello. Let me preface the following by first thanking you for your indulgence, and taking the time to share your insight. :) That said, as you already knew - php5 installed quite as intended. But the extensions are "squealing like pigs" in my error log - Unable to load dynamic library... So I'm just going to uninstall the whole works, and start with PHP5, then the extensions. As per setting things up by editing the Makefile v using the /etc/make.conf; I had considered saving the altered variables from the Makefile and using USE_SUBMAKE, which would allow me to "suck" the changes into make. But then wondered how I might continue using my usual conditionals in /etc/make.conf; .if ${.CURDIR:M*/lang/php5} WITH_THIS=TRUS WITHOUT_THAT=TRUE ... .endif But hadn't experimented much beyond that, except a couple of others... X_WINDOW_SYSTEM=xorg, WITH_GECKO=seamonkey,CPUTYPE?=pentium(N), etc. You mention that it'll change the parameters for all ports. But I was thinking that if used in an if.. then conditional I might be able to limit it's scope. Well, you've (kindly) given me some more studying to do. As I'm getting a bit weary of this whole thing. I'm going to end it here, and get on with it. Thank you again for all your time and consideration. --Chris > 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 >