From owner-freebsd-ports@FreeBSD.ORG Sat Sep 13 04:44:08 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A75F1065673 for ; Sat, 13 Sep 2008 04:44:08 +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 B43C28FC12 for ; Sat, 13 Sep 2008 04:44:07 +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 m8D4hoCG037849; Fri, 12 Sep 2008 21:43:56 -0700 (PDT) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m8D4hnVD037848; Fri, 12 Sep 2008 21:43:49 -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; Fri, 12 Sep 2008 21:43:49 -0700 Message-ID: <20080912214349.xrprskkcg00gw080@webmail.1command.com> Date: Fri, 12 Sep 2008 21:43:49 -0700 From: Chris H To: Dmitry Marakasov References: <20080912105907.hgkvg352gco0k8ow@webmail.1command.com> <20080912211222.GA37740@hades.panopticon> In-Reply-To: <20080912211222.GA37740@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; 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 Cc: freebsd-ports@freebsd.org Subject: Re: a $PREFIX question... 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: Sat, 13 Sep 2008 04:44:08 -0000 Hello Dmitry, and thank you for your response. Quoting Dmitry Marakasov : > * chris#/@\1command.com (chris#/@\1command.com) wrote: > > You should just refedine PREFIX to, say, /usr/local/php5, and everything > will be installed there: > > /usr/local/php5/bin > /usr/local/php5/etc > /usr/local/php5/include > /usr/local/php5/lib > ... Yes. I tried that already. But didn't have the effect I was striving for - duplicate the /current/ PHP install, but changing php/ to php5/ and simply adding php5/ to the bin path (bin/php5). Although your first suggestion might be ideal for a jail. > > If you specifically want bin/php5, etc/php5 etc. you'll have to > hack much more stuff. At least, you'll need to add > --bindir=${PREFIX}/bin/php5 --libdir=${PREFIX}/lib/php5 (etc. for other > dirs, see php's `configure --help`) to CONFIGURE_ARGS to make php5 > actually install file into those locations, and most likely other hacks > will be needed. OK. That's the layout I had hoped to achieve. So looks like I'll be cobbling up some (e)grep(1) | find(1) | sed(1) scripts to best accomplish this. I was hoping a simple tweak in the portinstall/*.bsd.mk might be available. Oh well, I'd have needed to add some patches to create a port anyway. So now that know that there's no kludge, I'll just have at it. Thank you for your informative answer Dmitry. That was exactly what I needed. :) Best wishes. --Chris > > -- > Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D > amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru >