# -*- 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
PortGroup           cmake 1.1
PortGroup           compilers 1.0

compilers.choose    cc cxx

name                mlpack
version             4.8.0
revision            0
categories          math devel science
license             BSD
maintainers         {takeshi @tenomoto} openmaintainer
description         Scalable C++ machine learning library
long_description \
    ${name} is an intuitive, fast, scalable C++ machine learning library, \
    meant to be a machine learning analog to LAPACK. \
    It aims to implement a wide array of machine learning methods and \
    functions as a \"swiss army knife\" for machine learning researchers.
homepage            https://mlpack.org
master_sites        ${homepage}/files/

checksums           rmd160  4be5b4ef898cd03cc24a415ed4a9e7f212d5e886 \
                    sha256  0ab06e5c506c7ed5f072faa4c04477c65624e4a1ff62eee8c0d996ef850ec51c \
                    size    10458915

depends_build-append \
                    path:bin/pkg-config:pkgconfig
depends_lib-append  port:armadillo \
                    port:cereal \
                    port:ensmallen \
                    port:libxml2

compiler.cxx_standard   2011

configure.pre_args-replace \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

configure.args-append \
                    -DBUILD_PYTHON_BINDINGS=OFF \
                    -DDISABLE_DOWNLOADS=ON \
                    -DARMADILLO_INCLUDE_DIR=${prefix}/include \
                    -DARMADILLO_LIBRARY=${prefix}/lib/libarmadillo.dylib \
                    -DENSMALLEN_INCLUDE_DIR=${prefix}/include

build.target        ""
