Ticket #14743: Portfile

File Portfile, 2.0 KB (added by alakazam@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem        1.0
4name              php5-eaccelerator
5version           0.9.5.3
6
7categories        www net devel
8platforms         darwin freebsd openbsd
9maintainers       nomaintainer
10homepage          http://eaccelerator.net/
11description       php5 extension for PHP acceleration, optimization, and dynamic content caching
12long_description \
13    eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic \
14    content cache. It increases the performance of PHP scripts by caching them \
15    in their compiled state, so that the overhead of compiling is almost \
16    completely eliminated. It also optimizes scripts to speed up their \
17    execution. eAccelerator typically reduces server load and increases the \
18    speed of your PHP code by 1-10 times.
19
20master_sites      http://bart.eaccelerator.net/source/${version}/
21checksums         md5 caf797223739516882f870342f74b935 \
22                  sha1 6671a105497f41c4e93e0b84da516b72df159fc5 \
23                  rmd160 9da55beec18e7a36761b5556d3bb4d5292d21650
24distname          eaccelerator-${version}
25extract.suffix    .tar.bz2
26extract.cmd       bzip2
27depends_lib       port:php5
28configure.args    --with-php-config=${prefix}/bin/php-config
29
30pre-configure {
31    cd ${worksrcpath}
32    system "phpize"
33}
34
35destroot.destdir INSTALL_ROOT=${destroot}
36
37post-install {
38
39    set ini_file          "${prefix}/etc/php.ini"
40    set extension_file    "${prefix}/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
41    set eaccelerator_docs "http://eaccelerator.net/wiki/Settings"
42
43    ui_msg "
44    ***************************************************************************
45    * To enable the eaccelerator extension in php, add or edit the following
46    * lines in ${ini_file}:
47    *
48    * zend_extension=\"${extension_file}\"
49    *
50    * For more information and details about configuration settings, see
51    * ${eaccelerator_docs}
52    ***************************************************************************"
53}