Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2003 10:23:04 +0100
From:      Jens Rehsack <rehsack@liwing.de>
To:        James Earl <mtntrip@telus.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Handling more than one build
Message-ID:  <3E48C0F8.8010301@liwing.de>
References:  <20030210165138.0bdcd8db.mtntrip@telus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rehsack@liwing.de>
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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E48C0F8.8010301>