From owner-freebsd-ports Tue Feb 11 1:25: 5 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5826B37B401 for ; Tue, 11 Feb 2003 01:25:01 -0800 (PST) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0539A43FBF for ; Tue, 11 Feb 2003 01:25:00 -0800 (PST) (envelope-from rehsack@liwing.de) Received: (qmail 36864 invoked from network); 11 Feb 2003 09:24:55 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 11 Feb 2003 09:24:55 -0000 Message-ID: <3E48C0F8.8010301@liwing.de> Date: Tue, 11 Feb 2003 10:23:04 +0100 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Earl Cc: freebsd-ports@freebsd.org Subject: Re: Handling more than one build References: <20030210165138.0bdcd8db.mtntrip@telus.net> Content-Type: multipart/mixed; boundary="------------090406040103020605010109" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------090406040103020605010109 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit James Earl wrote: > I'm working on a port which includes a php extension in the distribution. > > Before the php extension can be built (in a sub-directory off of WRKSRC), gmake has to be run in the WRKSRC to create a library dependency. Then to build the php extension, I run phpize, configure, and make. > > Is there a way to do this in the port Makefile, or, should I be modifying the distributions Makefile to build the php extension as well? I'm a bit of a novice at this, so I don't really want to go out on a limb and say the distributions Makefile is garbage... but, maybe it is?! > > I haven't been able to find any information regarding this in the Porter's Handbook, or bsd.port.mk. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > > I append you the port for the php debugger I've created and Vanilla will submit it shortly. This should answer your questions. Jens --------------090406040103020605010109 Content-Type: text/plain; name="php-dbg.shar" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="php-dbg.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/php-dbg.mine/Makefile # devel/php-dbg.mine/distinfo # devel/php-dbg.mine/pkg-comment # devel/php-dbg.mine/pkg-descr # devel/php-dbg.mine/pkg-message # devel/php-dbg.mine/pkg-plist # echo x - devel/php-dbg.mine/Makefile sed 's/^X//' >devel/php-dbg.mine/Makefile << 'END-of-devel/php-dbg.mine/Makefile' X# New ports collection makefile for: php-dbg X# Date created: Sun Jan 26 20:47:49 GMT 2003 X# Whom: Jens Rehsack X# X# $FreeBSD$ X# X XPORTNAME= dbg XPORTVERSION= 2.11.5 XCATEGORIES= devel XMASTER_SITES= http://dd.cron.ru/dbg/dnld/ XPKGNAMEPREFIX= php- XDISTNAME= ${PORTNAME}-${PORTVERSION}-src X XMAINTAINER= rehsack@liwing.de X XBUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ X autoconf:${PORTSDIR}/devel/autoconf \ X phpize:${PORTSDIR}/www/mod_php4 XRUN_DEPENDS= ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4 X XUSE_LIBTOOL= yes XWRKSRC= ${WRKDIR}/dbg XCONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler \ X --with-php-config=${PREFIX}/bin/php-config XPKGMESSAGE= ${WRKDIR}/pkg-message XPLIST= ${WRKDIR}/pkg-plist X X.include X XPHPCONFIG=${LOCALBASE}/bin/php-config X.if exists(${PHPCONFIG}) XPHPEXTENSIONS!= ${PHPCONFIG} --extension-dir X.else XPHPEXTENSIONS= ${LOCALBASE}/lib/php/extensions X.endif X Xpost-extract: X @${ECHO_MSG} "===> PHPizing for ${DISTNAME}" X @cd ${WRKSRC} && ${LOCALBASE}/bin/phpize X Xpost-build: X @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" \ X ${.CURDIR}/pkg-message > ${PKGMESSAGE} X @${SED} "s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" < ${.CURDIR}/pkg-plist | \ X ${SED} "s|${LOCALBASE}/||" >${PLIST} X Xdo-install: X @${MKDIR} ${PHPEXTENSIONS} X @${INSTALL_DATA} ${WRKSRC}/modules/dbg.so \ X ${PHPEXTENSIONS} X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include END-of-devel/php-dbg.mine/Makefile echo x - devel/php-dbg.mine/distinfo sed 's/^X//' >devel/php-dbg.mine/distinfo << 'END-of-devel/php-dbg.mine/distinfo' XMD5 (dbg-2.11.5-src.tar.gz) = 231f8da52bce33af6bd2ea5747b230be END-of-devel/php-dbg.mine/distinfo echo x - devel/php-dbg.mine/pkg-comment sed 's/^X//' >devel/php-dbg.mine/pkg-comment << 'END-of-devel/php-dbg.mine/pkg-comment' XDebugger for PHP4 END-of-devel/php-dbg.mine/pkg-comment echo x - devel/php-dbg.mine/pkg-descr sed 's/^X//' >devel/php-dbg.mine/pkg-descr << 'END-of-devel/php-dbg.mine/pkg-descr' XThe DBG Php Debugger is a comprehensive software tool that helps you Xdebugging your php scripts. X XWWW: http://dd.cron.ru/dbg/ END-of-devel/php-dbg.mine/pkg-descr echo x - devel/php-dbg.mine/pkg-message sed 's/^X//' >devel/php-dbg.mine/pkg-message << 'END-of-devel/php-dbg.mine/pkg-message' X***************************************************************************** XThis product includes DBG PHP Debugger, Copyright(C) 1999, 2000, 2001, X2002 Nusphere Corporation, http://www.nusphere.com/dbg X XThe php debugger has been installed successful. XAdd a line containing X X extension=dbg.so X Xto your php.ini to load it. XIf you have the Zend Optimizer installed, add the line X X zend_extension=%%PHPEXTENSIONS%%/dbg.so X Xto your [zend] section in the php.ini file, too. XAdd following section to enable/disable whatever you need from the debugger: X X [Debugger] X debugger.enabled=on X debugger.profiler_enabled=on X debugger.enable_session_cookie=on X debugger.JIT_enabled=on X debugger.JIT_port=7869 X X***************************************************************************** END-of-devel/php-dbg.mine/pkg-message echo x - devel/php-dbg.mine/pkg-plist sed 's/^X//' >devel/php-dbg.mine/pkg-plist << 'END-of-devel/php-dbg.mine/pkg-plist' X%%PHPEXTENSIONS%%/dbg.so END-of-devel/php-dbg.mine/pkg-plist exit --------------090406040103020605010109-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message