# -*- 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 github 1.0 github.setup zfergus finite-diff 1.0.2 v revision 0 categories math license MIT maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Simple finite-difference library using Eigen long_description {*}${description} checksums rmd160 71ea1cf897654c27b0a4d0092754c6741b2ba4fa \ sha256 f8a97df2f7b23bcc34ff939382bb50e5bc15b561dd70694e256def7169d9f15e \ size 11561 github.tarball_from archive # Match spdlog port: set fmt_v 10 cmake.module_path-prepend \ ${prefix}/lib/libfmt${fmt_v}/cmake depends_build-append \ port:catch2 depends_lib-append path:share/pkgconfig/eigen3.pc:eigen3 \ port:libfmt${fmt_v} \ port:spdlog # Use Macports libs: patchfiles-append patch-CMakeLists.diff compiler.cxx_standard 2014 configure.args-append \ -DFINITE_DIFF_BUILD_UNIT_TESTS=ON destroot { copy ${cmake.build_dir}/libfinitediff_finitediff.a ${destroot}${prefix}/lib copy ${worksrcpath}/src/finitediff.hpp ${destroot}${prefix}/include set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir} } test.run yes