Ticket #15747: Portfile

File Portfile, 2.6 KB (added by alakazam@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem        1.0
4
5name              php5-eaccelerator
6version           0.9.5.3
7
8categories        www net devel
9platforms         darwin freebsd openbsd
10maintainers       melix.net:alakazam
11homepage          http://eaccelerator.net/
12description       php5 extension for PHP acceleration, optimization, and dynamic content caching
13long_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
21master_sites      http://bart.eaccelerator.net/source/${version}/
22checksums         md5 caf797223739516882f870342f74b935 \
23                  sha1 6671a105497f41c4e93e0b84da516b72df159fc5 \
24                  rmd160 9da55beec18e7a36761b5556d3bb4d5292d21650
25distname          eaccelerator-${version}
26use_bzip2         yes
27depends_lib       port:php5
28configure.args    --with-php-config=${prefix}/bin/php-config
29
30pre-configure {
31    system "cd ${worksrcpath}; phpize"
32}
33
34destroot.destdir INSTALL_ROOT=${destroot}
35
36post-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
54variant shared_memory description {Enable shared memory access functions [only enable in trusted environments]} {
55    configure.args-append --with-eaccelerator-shared-memory
56}
57
58variant sessions description {Enable session handler [only enable in trusted environments]} {
59    configure.args-append --with-eaccelerator-sessions
60}
61
62variant 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
66variant disassembler description {Include a disassembler} {
67    configure.args-append --with-eaccelerator-disassembler
68}