source: trunk/dports/net/elhttp/Portfile

Last change on this file was 96384, checked in by ryandesign@…, 5 years ago

elhttp: license GPL-2+

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 948 bytes
Line 
1# $Id: Portfile 96384 2012-08-08 10:17:23Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    elhttp
6version                 0.22
7categories              net
8platforms               darwin
9maintainers             nomaintainer
10license                 GPL-2+
11
12description             the extra-light http proxy server
13long_description        ${description}
14
15homepage                http://www.cr0.net:8040/code/network/
16master_sites    ${homepage} http://downloads.openwrt.org/sources/
17extract.suffix  .tgz
18checksums               md5 b52f68c47f709e9fc9429250eb8f954c
19
20post-extract {
21        # DOS to UNIX line endings so we can patch.
22        reinplace "s|\r||g" ${worksrcpath}/elhttp.c
23}
24
25patchfiles              patch-Makefile.diff \
26                                patch-elhttp.c
27
28use_configure   no
29
30variant universal {}
31
32build.args              CC="${configure.cc}" \
33                                CFLAGS="${configure.cflags} [get_canonical_archflags cc]"
34
35build.target    linux
36
37destroot        {
38        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/
39        xinstall -m 755 -s ${worksrcpath}/elhttp ${destroot}${prefix}/sbin
40        xinstall -m 644 -W ${worksrcpath} README ChangeLog \
41                ${destroot}${prefix}/share/doc/${name}/
42}
Note: See TracBrowser for help on using the repository browser.