# -*- 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                conauto
version             2.03
categories          math
license             GPL-3+
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Program for graph isomorphism testing & automorphism group computation
long_description    {*}${description}
homepage            https://sites.google.com/site/giconauto
master_sites        macports_distfiles
checksums           rmd160  c2026e1dcc3225a3fa355d28bb6253789f781a2c \
                    sha256  d76e9ef4c2449294ec4ce9b3be0abe8f5cbf8884c0ce799f10d659ad644d158a \
                    size    21577

build.dir           ${worksrcpath}/src

patchfiles          patch-Makefile.diff \
                    patch-strncmp.diff

post-patch {
    reinplace "s,@CC@,${configure.cc}," ${build.dir}/Makefile
    reinplace "s,@ARCHFLAGS@,[get_canonical_archflags cc],g" ${build.dir}/Makefile
}

use_configure       no

destroot {
    xinstall -m 755 ${worksrcpath}/bin/${name}-${version} ${destroot}${prefix}/bin
}
