# $Id: Portfile 106406 2013-05-24 23:19:37Z mmoll@macports.org $

PortSystem 1.0
PortGroup  cmake 1.0
PortGroup  github 1.0

categories          science
maintainers         mmoll openmaintainer
description         A Flexible Collision Library
long_description    $description
github.setup        flexible-collision-library fcl 0.2.9
homepage            http://gamma.cs.unc.edu/FCL
platforms           darwin
license             BSD
depends_build-append port:pkgconfig
depends_lib-append  port:libccd port:boost
checksums           md5     bf17ef0ec0f46c37f1a240aac66ca093 \
                    sha1    808ebcb00ca527cbfbf826229ce560e6e88eccd1 \
                    rmd160  a0efd71bcdd94ea87608a2de685b3670fce9b162

if {${configure.compiler} == "gcc-4.0" ||
    ${configure.compiler} == "gcc-4.2" ||
    ${configure.compiler} == "llvm-gcc-4.2"} {
    # this flag disables the compile flag "-march=native",
    # which appears to be unsupported by these compilers
    configure.args-append -DFCL_USE_SSE=OFF
}
