1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name php5-eaccelerator |
---|
6 | version 0.9.5.3 |
---|
7 | |
---|
8 | categories www net devel |
---|
9 | platforms darwin freebsd openbsd |
---|
10 | maintainers melix.net:alakazam |
---|
11 | homepage http://eaccelerator.net/ |
---|
12 | description php5 extension for PHP acceleration, optimization, and dynamic content caching |
---|
13 | long_description \ |
---|
14 | eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic \ |
---|
15 | content cache. It increases the performance of PHP scripts by caching them \ |
---|
16 | in their compiled state, so that the overhead of compiling is almost \ |
---|
17 | completely eliminated. It also optimizes scripts to speed up their \ |
---|
18 | execution. eAccelerator typically reduces server load and increases the \ |
---|
19 | speed of your PHP code by 1-10 times. |
---|
20 | |
---|
21 | master_sites http://bart.eaccelerator.net/source/${version}/ |
---|
22 | checksums md5 caf797223739516882f870342f74b935 \ |
---|
23 | sha1 6671a105497f41c4e93e0b84da516b72df159fc5 \ |
---|
24 | rmd160 9da55beec18e7a36761b5556d3bb4d5292d21650 |
---|
25 | distname eaccelerator-${version} |
---|
26 | use_bzip2 yes |
---|
27 | depends_lib port:php5 |
---|
28 | configure.args --with-php-config=${prefix}/bin/php-config |
---|
29 | |
---|
30 | pre-configure { |
---|
31 | system "cd ${worksrcpath}; phpize" |
---|
32 | } |
---|
33 | |
---|
34 | destroot.destdir INSTALL_ROOT=${destroot} |
---|
35 | |
---|
36 | post-install { |
---|
37 | |
---|
38 | set ini_file "${prefix}/etc/php.ini" |
---|
39 | set extension_file "${prefix}/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so" |
---|
40 | set eaccelerator_docs "http://eaccelerator.net/wiki/Settings" |
---|
41 | |
---|
42 | ui_msg " |
---|
43 | *************************************************************************** |
---|
44 | * To enable the eaccelerator extension in php, add or edit the following |
---|
45 | * lines in ${ini_file}: |
---|
46 | * |
---|
47 | * zend_extension=\"${extension_file}\" |
---|
48 | * |
---|
49 | * For more information and details about configuration settings, see |
---|
50 | * ${eaccelerator_docs} |
---|
51 | ***************************************************************************" |
---|
52 | } |
---|
53 | |
---|
54 | variant shared_memory description {Enable shared memory access functions [only enable in trusted environments]} { |
---|
55 | configure.args-append --with-eaccelerator-shared-memory |
---|
56 | } |
---|
57 | |
---|
58 | variant sessions description {Enable session handler [only enable in trusted environments]} { |
---|
59 | configure.args-append --with-eaccelerator-sessions |
---|
60 | } |
---|
61 | |
---|
62 | variant content_caching description {Enable content caching support [may be obsoleted in a future version of eAccelerator]} { |
---|
63 | configure.args-append --with-eaccelerator-content-caching |
---|
64 | } |
---|
65 | |
---|
66 | variant disassembler description {Include a disassembler} { |
---|
67 | configure.args-append --with-eaccelerator-disassembler |
---|
68 | } |
---|