Ticket #7720: Portfile

File Portfile, 2.1 KB (added by jstetser@…, 19 years ago)

Portfile for 1.4.11

Line 
1# $Id: Portfile,v 1.6 2006/03/18 10:10:10 olegb Exp $
2
3PortSystem 1.0
4name              lighttpd
5version           1.4.11
6categories        www
7maintainers       jstetseraticongarden.com
8description       A secure, fast, compliant and flexible web-server
9long_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.
13homepage          http://www.lighttpd.net/
14master_sites      ${homepage}/download/
15checksums         ${distname}.tar.gz sha1 ca904d3d4d9dde76f85156f2c709a394f30e28c8 \
16                  lighttpd.conf sha1 b13edd7e9f7da3761f4e152ff92d5f34044bd91d
17depends_lib       lib:libpcre:pcre \
18                  lib:libz.1:zlib
19
20configure.args    --mandir=${prefix}/share/man
21
22post-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
28platform 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
32variant 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
42variant ssl {
43   depends_lib-append   bin:openssl:openssl
44   configure.args-append --with-openssl=${prefix}/include/openssl
45}
46
47variant 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
57variant 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}