diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-06 19:20:30 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-06 19:20:30 +0000 |
commit | 5c2481ab5e356bfffb265314ccb81d39d8de04ef (patch) | |
tree | 1a5712de7f2a962f21cdf0be4ab2f2f7ef24245b /devel/php-dbg2 | |
parent | 75883d46194581281ad8e58dcfd767b77aea54f9 (diff) | |
download | ports-5c2481ab5e356bfffb265314ccb81d39d8de04ef.tar.gz ports-5c2481ab5e356bfffb265314ccb81d39d8de04ef.zip |
Notes
Diffstat (limited to 'devel/php-dbg2')
-rw-r--r-- | devel/php-dbg2/Makefile | 32 | ||||
-rw-r--r-- | devel/php-dbg2/pkg-message | 4 | ||||
-rw-r--r-- | devel/php-dbg2/pkg-plist | 3 |
3 files changed, 10 insertions, 29 deletions
diff --git a/devel/php-dbg2/Makefile b/devel/php-dbg2/Makefile index 8f55ecc7ab8a..8116ecfa7820 100644 --- a/devel/php-dbg2/Makefile +++ b/devel/php-dbg2/Makefile @@ -16,42 +16,22 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= rehsack@liwing.de COMMENT= Debugger for PHP4 -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 -CONFIGURE_ENV= CFLAGS="${CFLAGS}" +USE_PHPIZE= yes +CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler 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 +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" post-build: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" \ + @${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \ ${.CURDIR}/pkg-message > ${PKGMESSAGE} - @${SED} "s|%%PHPEXTENSIONS%%|${PHPEXTENSIONS}|g" < ${.CURDIR}/pkg-plist | \ - ${SED} "s|${LOCALBASE}/||" >${PLIST} do-install: - @${MKDIR} ${PHPEXTENSIONS} + @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} @${INSTALL_DATA} ${WRKSRC}/modules/dbg.so \ - ${PHPEXTENSIONS} + ${PREFIX}/lib/php/${PHP_EXT_DIR} post-install: @${CAT} ${PKGMESSAGE} diff --git a/devel/php-dbg2/pkg-message b/devel/php-dbg2/pkg-message index 59b308e78c54..355104c7a827 100644 --- a/devel/php-dbg2/pkg-message +++ b/devel/php-dbg2/pkg-message @@ -5,12 +5,12 @@ This product includes DBG PHP Debugger, Copyright(C) 1999, 2000, 2001, The php debugger has been installed successful. Add a line containing - extension=%%PREFIX%%/lib/php/extensions/dbg.so + extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/dbg.so to your php.ini to load it. If you have the Zend Optimizer installed, add the line - zend_extension=%%PREFIX%%/lib/php/extensions/dbg.so + zend_extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/dbg.so to your [zend] section in the php.ini file, too. Add following section to enable/disable whatever you need from the debugger: diff --git a/devel/php-dbg2/pkg-plist b/devel/php-dbg2/pkg-plist index d4a3f04b52aa..b49ec0b6ccab 100644 --- a/devel/php-dbg2/pkg-plist +++ b/devel/php-dbg2/pkg-plist @@ -1 +1,2 @@ -%%PHPEXTENSIONS%%/dbg.so +lib/php/%%PHP_EXT_DIR%%/dbg.so +@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2>/dev/null || true |