diff options
author | vanilla <vanilla@FreeBSD.org> | 2003-02-13 20:13:39 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2003-02-13 20:13:39 +0800 |
commit | 5bc0ce4d939893c87e0a2d6dcd93246e5bcb590a (patch) | |
tree | eced3b472abdccd4b8153413203f64c453a4ae5e /devel/php-dbg2/Makefile | |
parent | 24b8b981a2a61af8b2d6debc318692632da82bf0 (diff) | |
download | freebsd-ports-gnome-5bc0ce4d939893c87e0a2d6dcd93246e5bcb590a.tar.gz freebsd-ports-gnome-5bc0ce4d939893c87e0a2d6dcd93246e5bcb590a.tar.zst freebsd-ports-gnome-5bc0ce4d939893c87e0a2d6dcd93246e5bcb590a.zip |
Add php-dbg, it's a debugger for php.
PR: ports/47527
Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'devel/php-dbg2/Makefile')
-rw-r--r-- | devel/php-dbg2/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/devel/php-dbg2/Makefile b/devel/php-dbg2/Makefile new file mode 100644 index 000000000000..7677e8e54b03 --- /dev/null +++ b/devel/php-dbg2/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: dbg_php4 +# Date created: Sun Jan 26 20:47:49 GMT 2003 +# Whom: Jens Rehsack <rehsack@liwing.de> +# +# $FreeBSD$ +# + +PORTNAME= dbg +PORTVERSION= 2.11.5 +CATEGORIES= devel +MASTER_SITES= http://dd.cron.ru/dbg/dnld/ +PKGNAMEPREFIX= php- +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= rehsack@liwing.de + +BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ + autoconf:${PORTSDIR}/devel/autoconf \ + phpize:${PORTSDIR}/www/mod_php4 +RUN_DEPENDS= ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4 + +USE_LIBTOOL= yes +WRKSRC= ${WRKDIR}/dbg +CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler \ + --with-php-config=${PREFIX}/bin/php-config +PKGMESSAGE= ${WRKDIR}/pkg-message +PLIST= ${WRKDIR}/pkg-plist + +.include <bsd.port.pre.mk> + +PHPCONFIG= ${LOCALBASE}/bin/php-config +.if exists(${PHPCONFIG}) +PHPEXTENSIONS!= ${PHPCONFIG} --extension-dir +.else +PHPEXTENSIONS= ${LOCALBASE}/lib/php/extensions +.endif + +post-extract: + @${ECHO_MSG} "===> PHPizing for ${DISTNAME}" + @cd ${WRKSRC} && ${LOCALBASE}/bin/phpize + +post-build: + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" \ + ${.CURDIR}/pkg-message > ${PKGMESSAGE} + @${SED} "s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" < ${.CURDIR}/pkg-plist | \ + ${SED} "s|${LOCALBASE}/||" >${PLIST} + +do-install: + @${MKDIR} ${PHPEXTENSIONS} + @${INSTALL_DATA} ${WRKSRC}/modules/dbg.so \ + ${PHPEXTENSIONS} + +post-install: + @${CAT} ${PKGMESSAGE} +.include <bsd.port.post.mk> |