# -*- 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
# $Id: Portfile 78035 2011-04-20 09:29:27Z ryandesign@macports.org $

PortSystem          1.0

name                pecco
version             2011-01-10
categories          science
platforms           darwin
maintainers         nomaintainer
license             GPL-2

description         simple C++ library for linear classification with conjunctive features

long_description    ${name} is a ${description}.

homepage            http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/
master_sites        ${homepage}

checksums           sha1    a6775affaad0c03e52921b5a505f383b9e5a8500 \
                    rmd160  3fa3a1cec5183a644d6eaecd50db506617b64301

depends_lib-append  port:darts

dist_subdir         ${name}/${version}
distname            ${name}
use_bzip2           yes

# use darts instead of darts_clone
patchfiles          patch-pecco_conf.h.diff

use_configure       no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cxxflags}
} else {
    set archflags ${configure.cxx_archflags}
}

build.args          CC="${configure.cxx}" \
                    INCLUDE="${configure.cppflags}" \
                    CFLAGS="${configure.cxxflags} ${archflags}" \
                    -f makefile.${name}

destroot {
    xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} COPYING GPL README \
                       ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      moddate
