# -*- 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.6.2
revision            0
categories          math devel science
license             BSD
maintainers         {takeshi @tenomoto} openmaintainer
description         a scalable C++ machine learning library
long_description \
    mlpack 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  a4eb894da7d81e50b464c486bc2222088fef3c5f \
                    sha256  2fe772da383a935645ced07a07b51942ca178d38129df3bf685890bc3c1752cf \
                    size    8144737

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 \
                    -DISABLE_DOWNLOADS=ON \
                    -DARMADILLO_INCLUDE_DIR=${prefix}/include \
                    -DARMADILLO_LIBRARY=${prefix}/lib/libarmadillo.dylib \
                    -DENSMALLEN_INCLUDE_DIR=${prefix}/include

build.target        ""
