From owner-freebsd-ports@FreeBSD.ORG Fri Sep 12 18:36:39 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 F014C1065675 for ; Fri, 12 Sep 2008 18:36:39 +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 AF70A8FC16 for ; Fri, 12 Sep 2008 18:36:39 +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 m8CHx7pp040345 for ; Fri, 12 Sep 2008 10:59:13 -0700 (PDT) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m8CHx7cu040344 for freebsd-ports@freebsd.org; Fri, 12 Sep 2008 10:59:07 -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 10:59:07 -0700 Message-ID: <20080912105907.hgkvg352gco0k8ow@webmail.1command.com> Date: Fri, 12 Sep 2008 10:59:07 -0700 From: chris#@1command.com To: "[FBSDP]" 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: 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: Fri, 12 Sep 2008 18:36:40 -0000 Greetings, I'm attempting to create (hack) the current php5 port to permit the installation of the CGI sapi along side php4 (CLI, and MOD sapi). I /know/ where /want/ everything to go (believing I can make it work). BUT, I'm not confident I have a firm grasp on the ports variables. This is what I've done so far: o edited the pkg-plist; modifying all references to php/ to php5/ eg; bin/php5/ etc/php5/ include/php5/ lib/php5/ o edited (hacked) the following lines in the Makefile; CONFIGURE_ARGS= --with-config-file-scan-dir=${PREFIX}/etc/php5 ... post-install: @${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php5 @${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc/php5 @${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc/php5 @${TOUCH} ${PREFIX}/include/php5/ext/php_config.h NOW, here's where I fail to completely understand the $PREFIX &| $LOCALBASE variables. I understand that $PREFIX if left undefined defaults to $LOCALBASE (/usr/local). BUT, what must I define to coerce the php5 CGI sapi (and depends) to simply use the php5 directory as opposed to the default *php* directory? Any help here would be GREATLY appreciated, as I hope to ultimately turn this into a port. :) Thank you for your time and consideration. --Chris