# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                pathalizer
version             0.7
revision            10
categories          www
platforms           darwin
maintainers         nomaintainer
license             GPL

description         visualize the paths most users take when browsing a website

long_description    Pathalizer is a tool to visualize the paths most users \
                    take when browsing a website. This information can then be \
                    used to decide how to improve the navigation of the site, and \
                    which parts are most worth improving and keeping up to date. 

homepage            http://pathalizer.sourceforge.net/
master_sites        sourceforge:project/pathalizer/pathalizer/${version}

checksums           md5     7ef23977fc246dcdf332e4eec3111037 \
                    rmd160  d57da4a5487496487bc7fdeba2ff634ee906fa17 \
                    sha256  a64841b58d81a9736f47c796c9e9157189eb57204306291f64937c586783c25d

depends_run         port:ghostscript \
                    path:bin/dot:graphviz \
                    port:netpbm

use_configure       no

variant universal {}

post-patch {
    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/bin/pathalizer
    reinplace "s|g++|${configure.cxx} [get_canonical_archflags cxx]|g" ${worksrcpath}/src/Makefile
}

destroot.destdir    PREFIX=${destroot}${prefix}

post-destroot {
    xinstall -m 644 ${filespath}/pathalizer.conf \
        ${destroot}${prefix}/etc/pathalizer.conf.sample
}
