Ticket #12384: php-xdebug.Portfile

File php-xdebug.Portfile, 1.9 KB (added by emory.smith@…, 17 years ago)

Portfile for php5-xdebug

Line 
1
2PortSystem 1.0
3name              php5-xdebug
4version           2.0.0
5
6categories        www net devel
7platforms         darwin freebsd openbsd
8maintainers       emory.smith@gmail.com openmaintainer@macports.org
9homepage          http://www.xdebug.org/index.php
10description       php5 extension for php debugging
11long_description \
12    Xdebug is a php extension that helps you debug your scripts. It \
13    provides valuable debug information, including error stack traces and \
14    memory allocation summaries.  It can generate profiling information \
15    about your php scripts, to be used for script execution analysis and \
16    optimization. It also supports debugging interactively using the dbg \
17    debug client.
18
19master_sites      http://www.xdebug.org/files/
20checksums         md5 0f9ecb9c5331d0041b04be9566763171
21distname          xdebug-${version}
22extract.suffix    .tgz
23depends_lib       port:php5
24configure.args    --enable-xdebug --with-php-config=${prefix}/bin/php-config
25
26pre-configure {
27    cd ${worksrcpath}
28    system "${prefix}/bin/phpize"
29}
30
31destroot.destdir INSTALL_ROOT=${destroot}
32
33post-install {
34
35    set ini_file       "${prefix}/etc/php.ini"
36    set extension_file "${prefix}/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
37    set xdebug_docs    "http://www.xdebug.org/docs/"
38
39    ui_msg "
40    ***************************************************************************
41    * To enable the xdebug extension in php, add or edit the following
42    * lines in ${ini_file}:
43    *
44    * zend_extension=\"${extension_file}\"
45    *
46    * Once the extension is installed, you can get a list of the available
47    * configuration settings with the following command:
48    *
49    * % php --ri xdebug
50    *
51    * For more information and details about configuration settings, see
52    * ${xdebug_docs}
53    ***************************************************************************"
54}