# $Id: Portfile 119531 2014-04-29 15:24:35Z mmoll@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0
PortGroup           compiler_blacklist_versions 1.0

name                ceres-solver
version             1.8.0
categories          math
platforms           darwin
license             BSD
maintainers         mmoll openmaintainer
description         A Nonlinear Least Squares Minimizer
long_description    ${description}
homepage            https://code.google.com/p/ceres-solver/
master_sites        googlecode
checksums           rmd160  c09eb167c701c90b022e59223b13efd116ba6271 \
                    sha256  8ee53241930622b74946201123cd38231161878caacf6c30a3bf1c68b24d79af

# internal compiler error with this version of clang
compiler.blacklist {clang == 421.11.66}

patch {
    reinplace "s|-Werror||g" ${worksrcpath}/CMakeLists.txt
}
depends_lib-append  port:eigen3 port:SuiteSparse port:metis port:gflags port:google-glog

livecheck.type      regex
livecheck.url       ${homepage}downloads/list
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
