source: trunk/dports/www/lighttpd-devel/Portfile @ 87969

Last change on this file since 87969 was 82044, checked in by jmr@…, 8 years ago

lighttpd-devel: add pkgconfig dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 82044 2011-08-06 21:34:56Z jmr@macports.org $
2
3PortSystem 1.0
4name              lighttpd-devel
5version           1.5.0-r1691
6categories        www
7platforms         darwin
8maintainers       ryandesign
9description       A secure, fast, compliant and flexible web-server
10long_description  lighttpd is a secure, fast, compliant and very flexible\
11                  web-server which has been optimized for high-performance\
12                  environments. It has a very low memory footprint\
13                  compared to other webservers and takes care of cpu-load. \
14                  This is the 1.5.x pre-release version.
15homepage          http://www.lighttpd.net/
16master_sites      ${homepage}assets/2007/2/23/
17distname          lighttpd-${version}
18worksrcdir        lighttpd-1.5.0
19checksums         ${distname}.tar.gz \
20                    md5 529909adbafee7e2c26bb427226f1457 \
21                    sha1 afe4ce968fc898404cd9e61e8e48b2ea3f6db5ca \
22                    rmd160 fc3bb80265e0090fce622822d4658568a5aa536c
23depends_build     port:pkgconfig
24depends_lib       port:pcre \
25                  port:zlib \
26                  path:lib/pkgconfig/glib-2.0.pc:glib2
27patchfiles        patch-doc-lighttpd.conf \
28                  patch-src-settings.h
29
30post-patch {
31        reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
32}
33
34configure.args    --mandir=${prefix}/share/man
35
36# Startup item.
37set lighttpd_config_name   lighttpd.conf
38set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
39set lighttpd_pidfile_name  lighttpd.pid
40set lighttpd_pidfile       ${prefix}/var/run/${lighttpd_pidfile_name}
41
42startupitem.create  yes
43startupitem.init    "PIDFILE=${lighttpd_pidfile}"
44startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
45startupitem.stop    "kill \$(cat \$PIDFILE)"
46
47post-destroot {
48   file mkdir "${destroot}${prefix}/etc/${name}/"
49   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
50                      "${destroot}${lighttpd_config}.default"
51}
52
53post-install {
54  ui_msg "\n Before starting lighttpd it must be configured.\n\
55    Lighttpd is configured by editing ${lighttpd_config}\n\
56    There's a sample config file at ${lighttpd_config}.default.\n\
57    Please note that the launchd daemon relies on the PID being at\n\
58    ${lighttpd_pidfile}."
59}
60
61variant mysql4 conflicts mysql5 {
62   depends_lib-append    port:mysql4
63   configure.args-append --with-mysql=${prefix}/bin/mysql_config
64
65   post-configure {
66      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql/mysql.h\"|g" \
67                "${worksrcpath}/src/mod_mysql_vhost.c"
68   }
69}
70
71variant mysql5 conflicts mysql4 {
72   depends_lib-append    path:bin/mysql_config5:mysql5
73   configure.args-append --with-mysql=${prefix}/bin/mysql_config5
74
75   post-configure {
76      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql5/mysql/mysql.h\"|g" \
77                "${worksrcpath}/src/mod_mysql_vhost.c"
78   }
79}
80
81variant ssl {
82   depends_lib-append   port:openssl
83   configure.args-append --with-openssl=${prefix}/include/openssl
84}
85
86variant cml {
87   depends_lib-append   port:lua \
88                        port:libmemcache \
89                        port:memcached \
90                        port:pkgconfig
91                       
92   configure.args-append --with-lua=${prefix} \
93                         --with-memcache
94}
95
96variant davprops {
97   depends_lib-append   port:libxml2 \
98                        port:sqlite3 \
99                        port:pkgconfig
100                       
101   configure.args-append --with-webdav-props
102}
103
104variant bzip2 {
105   depends_lib-append   port:bzip2
106                       
107   configure.args-append --with-bzip2
108}
109
110variant attr {
111   configure.args-append --with-attr
112}
113
114default_variants        +bzip2
115
116livecheck.type  regex
117livecheck.url   http://www.lighttpd.net/2007/2/3/lighttpd-1-5-0-pre
118livecheck.regex {<a href="http://www.lighttpd.net/assets/.*/lighttpd-(.*?).tar.gz">lighttpd-\1.tar.gz</a>}
Note: See TracBrowser for help on using the repository browser.