| 214 | variant rrdtool { |
| 215 | # Add rrdtool bindings to PHP |
| 216 | depends_lib-append port:rrdtool |
| 217 | master_sites-append http://www.opendarwin.org/~markd/:rrdtool |
| 218 | distfiles-append php_rrdtool.tar.bz2:rrdtool |
| 219 | checksums-append php_rrdtool.tar.bz2 md5 d718887b43831d5c4cae15d9a114bf1a |
| 220 | configure.env-append CFLAGS=-DHAVE_RRD_12X |
| 221 | configure.args-append --with-rrdtool=${prefix} |
| 222 | |
| 223 | pre-configure { |
| 224 | # Extract the php_rrdtool tarball into the php source/ext directory |
| 225 | system "cd ${worksrcpath}/ext && ${extract.cmd} -dc ${distpath}/php_rrdtool.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -" |
| 226 | |
| 227 | file delete ${worksrcpath}/configure |
| 228 | system "cd ${worksrcpath} && ./buildconf --force" |
| 229 | } |
| 230 | } |
| 231 | |