1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name analog |
---|
4 | version 5.32 |
---|
5 | categories www |
---|
6 | maintainers blb@pobox.com |
---|
7 | description A program which analyses logfiles from WWW servers |
---|
8 | |
---|
9 | long_description \ |
---|
10 | It is designed to be fast and to produce accurate and attractive statistics: \ |
---|
11 | and combined with Report Magic, you can generate even prettier reports. \ |
---|
12 | It's free software. |
---|
13 | |
---|
14 | homepage http://www.analog.cx/ |
---|
15 | master_sites http://www.analog.cx/ \ |
---|
16 | http://analog.linuxhelp.ca/ \ |
---|
17 | http://www.rge.com/pub/infosystems/statistics/analog/ \ |
---|
18 | http://sunsite.cnlab-switch.ch/www/mirror/analog/ |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | checksums md5 077a2d43c8f5c2bddf37129ca63ec1f8 |
---|
22 | |
---|
23 | # Note, it'd be nice to use an already-installed version of jpeg and libpng |
---|
24 | # as well, but analog currently doesn't have a HAVE_ define for them, just |
---|
25 | # zlib (as well as gd, which should be here too if possible) |
---|
26 | depends_lib lib:libz.1:zlib |
---|
27 | |
---|
28 | use_configure no |
---|
29 | |
---|
30 | set shareanalog ${prefix}/share/analog |
---|
31 | # Note, we can also set these *DIR variables with the build.args, but |
---|
32 | # quoting gets really, really ugly (seven-backslashes-ugly) |
---|
33 | post-patch { |
---|
34 | reinplace "s|#define IMAGEDIR \"images/\"|#define IMAGEDIR \"${shareanalog}/images/\"|" "${worksrcpath}/src/anlghead.h" |
---|
35 | reinplace "s|#define LANGDIR NULL|#define LANGDIR \"${shareanalog}/lang/\"|" "${worksrcpath}/src/anlghead.h" |
---|
36 | reinplace "s|#define CONFIGDIR NULL|#define CONFIGDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
37 | reinplace "s|#define LOGSDIR NULL|#define LOGSDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
38 | reinplace "s|#define CACHEDIR NULL|#define CACHEDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
39 | reinplace "s|#define OUTDIR NULL|#define OUTDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
40 | reinplace "s|#define HEADERDIR NULL|#define HEADERDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
41 | reinplace "s|#define DNSDIR NULL|#define DNSDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
42 | reinplace "s|#define LOCKDIR NULL|#define LOCKDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
43 | reinplace "s|#define ERRDIR NULL|#define ERRDIR \"\"|" "${worksrcpath}/src/anlghead.h" |
---|
44 | } |
---|
45 | |
---|
46 | build.args DEFS="-DHAVE_ZLIB" LIBS="-lz" OS="OSX" |
---|
47 | build.target analog |
---|
48 | build.cmd cd ${worksrcpath}/src && make |
---|
49 | |
---|
50 | pre-destroot { |
---|
51 | system "mkdir -p \"${destroot}/${prefix}/bin\"" |
---|
52 | system "mkdir -p \"${destroot}/${prefix}/share/doc/analog\"" |
---|
53 | system "mkdir -p \"${destroot}/${prefix}/share/man/man1\"" |
---|
54 | system "mkdir -p \"${destroot}/${shareanalog}\"" |
---|
55 | } |
---|
56 | |
---|
57 | destroot { |
---|
58 | system "cd \"${worksrcpath}\" && \ |
---|
59 | tar cf - examples how-to images lang | \ |
---|
60 | tar xf - -C \"${destroot}/${shareanalog}\"" |
---|
61 | system "cd \"${worksrcpath}/docs\" && \ |
---|
62 | tar cf - . | \ |
---|
63 | tar xf - -C \"${destroot}/${prefix}/share/doc/analog\"" |
---|
64 | system "install -m 644 \"${worksrcpath}/analog.man\" \"${destroot}/${prefix}/share/man/man1/analog.1\"" |
---|
65 | system "install -m 755 \"${worksrcpath}/analog\" \"${destroot}/${prefix}/bin\"" |
---|
66 | } |
---|
67 | |
---|