# $Id: Portfile 96384 2012-08-08 10:17:23Z ryandesign@macports.org $ PortSystem 1.0 name elhttp version 0.22 categories net platforms darwin maintainers nomaintainer license GPL-2+ description the extra-light http proxy server long_description ${description} homepage http://www.cr0.net:8040/code/network/ master_sites ${homepage} http://downloads.openwrt.org/sources/ extract.suffix .tgz checksums md5 b52f68c47f709e9fc9429250eb8f954c post-extract { # DOS to UNIX line endings so we can patch. reinplace "s|\r||g" ${worksrcpath}/elhttp.c } patchfiles patch-Makefile.diff \ patch-elhttp.c use_configure no variant universal {} build.args CC="${configure.cc}" \ CFLAGS="${configure.cflags} [get_canonical_archflags cc]" build.target linux destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/ xinstall -m 755 -s ${worksrcpath}/elhttp ${destroot}${prefix}/sbin xinstall -m 644 -W ${worksrcpath} README ChangeLog \ ${destroot}${prefix}/share/doc/${name}/ }