1 | # $Id: Portfile,v 1.6 2006/03/18 10:10:10 olegb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name lighttpd |
---|
5 | version 1.4.11 |
---|
6 | categories www |
---|
7 | maintainers jstetseraticongarden.com |
---|
8 | description A secure, fast, compliant and flexible web-server |
---|
9 | long_description lighttpd is a secure, fast, compliant and very flexible\ |
---|
10 | web-server which has been optimized for high-performance\ |
---|
11 | environments. It has a very low memory footprint\ |
---|
12 | compared to other webservers and takes care of cpu-load. |
---|
13 | homepage http://www.lighttpd.net/ |
---|
14 | master_sites ${homepage}/download/ |
---|
15 | checksums ${distname}.tar.gz sha1 ca904d3d4d9dde76f85156f2c709a394f30e28c8 \ |
---|
16 | lighttpd.conf sha1 b13edd7e9f7da3761f4e152ff92d5f34044bd91d |
---|
17 | depends_lib lib:libpcre:pcre \ |
---|
18 | lib:libz.1:zlib |
---|
19 | |
---|
20 | configure.args --mandir=${prefix}/share/man |
---|
21 | |
---|
22 | post-destroot { |
---|
23 | file mkdir "${destroot}${prefix}/etc/${name}/" |
---|
24 | xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \ |
---|
25 | "${destroot}${prefix}/etc/${name}/lighttpd.conf.default" |
---|
26 | } |
---|
27 | |
---|
28 | platform darwin 8 { |
---|
29 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
30 | } |
---|
31 | |
---|
32 | variant mysql { |
---|
33 | depends_lib-append lib:libmysqlclient:mysql4 |
---|
34 | configure.args-append --with-mysql=${prefix}/bin/mysql_config |
---|
35 | |
---|
36 | post-configure { |
---|
37 | reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql/mysql.h\"|g" \ |
---|
38 | "${worksrcpath}/src/mod_mysql_vhost.c" |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | variant ssl { |
---|
43 | depends_lib-append bin:openssl:openssl |
---|
44 | configure.args-append --with-openssl=${prefix}/include/openssl |
---|
45 | } |
---|
46 | |
---|
47 | variant cml { |
---|
48 | depends_lib-append lib:liblua:lua \ |
---|
49 | lib:libmemcache:libmemcache \ |
---|
50 | bin:memcached:memcached \ |
---|
51 | bin:pkgconfig:pkgconfig |
---|
52 | |
---|
53 | configure.args-append --with-lua \ |
---|
54 | --with-memcache |
---|
55 | } |
---|
56 | |
---|
57 | variant davprops { |
---|
58 | depends_lib-append lib:libxml:libxml2 \ |
---|
59 | lib:libsqlite3:sqlite3 \ |
---|
60 | bin:pkgconfig:pkgconfig |
---|
61 | |
---|
62 | configure.args-append --with-webdav-props |
---|
63 | } |
---|