source: trunk/dports/www/mathopd/Portfile

Last change on this file was 110997, checked in by jmr@…, 4 years ago

mathopd: set license, fix getline conflict, pass CC and flags to makefile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 110997 2013-09-13 00:25:26Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name             mathopd
6version          1.5p4
7categories       www
8license          BSD
9maintainers      nomaintainer
10description      small, yet very fast HTTP server
11long_description \
12    Mathopd is a very small, yet very fast HTTP server for UN*X \
13    systems. Mathopd is designed specifically to handle a large \
14    number of connections with minimal fuss. It contains no \
15    unnecessary add-ons, but it does the trick for most things.
16homepage         http://www.mathopd.org/
17platforms        darwin
18master_sites     ${homepage}dist/
19checksums        md5 38b7bfd66b4bd18d4cb41b4ce4703e58
20worksrcdir       ${distname}/src
21
22patchfiles       getline.diff
23post-patch {
24    reinplace "s|LIBS = -lcrypt||" ${worksrcpath}/Makefile
25}
26
27use_configure    no
28
29build.args       CC="${configure.cc}" \
30                 CFLAGS="${configure.cflags} ${configure.cc_archflags} -Wall -Wextra" \
31                 LDFLAGS="${configure.ld_archflags}"
32
33destroot.destdir PREFIX=${destroot}${prefix}
34post-destroot {
35    file mkdir ${destroot}${prefix}/share/doc
36    file copy ${worksrcpath}/../doc ${destroot}${prefix}/share/doc/mathopd
37}
38
39post-install {
40    ui_msg ""
41    ui_msg "Documentation installed into ${prefix}/share/doc/mathopd/"
42    ui_msg "Mathopd will require some configuration before it can be used."
43}
Note: See TracBrowser for help on using the repository browser.