Ticket #19505: php5-rrdtool.diff

File php5-rrdtool.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    11# $Id$
    22
    33PortSystem 1.0
     4PortGroup  php5extension 1.0
    45
    5 name              php5-rrdtool
    6 version           1.0
    7 revision          1
    8 categories        www net devel
     6php5extension.setup rrdtool 1.0
     7revision          2
     8categories-append www net devel
    99platforms         darwin
    1010maintainers       markd
    1111description       PHP 5 glue for rrdtool
     
    1717checksums         md5 c86a45cfc54517b9066c480bbc589d43
    1818distfiles         php_rrdtool.tar.gz
    1919
    20 depends_lib       port:rrdtool port:php5 port:re2c
     20depends_lib-append port:rrdtool port:re2c
    2121
    2222worksrcdir        rrdtool
    2323
    2424configure.cflags-append     "-DHAVE_RRD_12X"
    2525configure.args    --with-rrdtool=${prefix}
    26 
    27 pre-configure {
    28         system "cd ${worksrcpath} && phpize"
    29 }
    30 
    31 destroot.destdir INSTALL_ROOT=${destroot}
    32 
    33 post-install {
    34   ui_msg "\n
    35 To enable the rrdtool extension in php, modify the extension variables
    36 in ${prefix}/etc/php.ini as shown:
    37 
    38 Edit variable:
    39 
    40         extension_dir = \"${prefix}/lib/php/extensions/no-debug-non-zts-20060613\"
    41 
    42 Add an extension statement:
    43 
    44         extension = rrdtool.so
    45 \n"
    46 }