From owner-freebsd-ports@FreeBSD.ORG Sat Sep 13 12:54:17 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 0B2A6106564A for ; Sat, 13 Sep 2008 12:54:17 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4CC8FC08 for ; Sat, 13 Sep 2008 12:54:16 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KeUdj-0005bX-Uk; Sat, 13 Sep 2008 16:54:16 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 304F011413; Sat, 13 Sep 2008 16:54:27 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 6180617031; Sat, 13 Sep 2008 16:54:07 +0400 (MSD) Date: Sat, 13 Sep 2008 16:54:07 +0400 From: Dmitry Marakasov To: Chris H Message-ID: <20080913125407.GC37740@hades.panopticon> References: <20080912105907.hgkvg352gco0k8ow@webmail.1command.com> <20080912211222.GA37740@hades.panopticon> <20080912214349.xrprskkcg00gw080@webmail.1command.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080912214349.xrprskkcg00gw080@webmail.1command.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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 12:54:17 -0000 * Chris H (chris#@1command.com) wrote: > 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. For jail there's DESTDIR. PREFIX is exactly for keeping conflicting apps along with each other. And I don't actually understand why you need to scatter php5 files in all subdirs, while you could have them in one directory with canonical hierarchy. You'll have to modify $PATH and posibly other stuff in both cases, so there's no difference in usability. >> 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 As I've said, providing --*lib args to configure should be enough to install files to nondefault locations, but there's chance that there are some assumptions regarding directory hierarchy inside php you'll need to change as well. That's usually done with ${REINPLACE_CMD} (which is sed) or patches. > this. I was hoping a simple tweak in the portinstall/*.bsd.mk might be > available. That would be impossible, as no software is intended for such nonstandart install, and build systems other than configure don't even provide ways to specify bin/etc/lib dirs. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru