You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
50 lines
1.5 KiB
Tcl
50 lines
1.5 KiB
Tcl
# -*- 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.4 v
|
|
revision 0
|
|
checksums rmd160 35561ee25a95df2970c168e1a02a251b3769c8d7 \
|
|
sha256 2ac427ae4b35a862fada345c2996228ba1a51c7da62941eb1e75611fb5448644 \
|
|
size 13313
|
|
|
|
categories math
|
|
license MIT
|
|
maintainers nomaintainer
|
|
description Simple finite-difference library using Eigen
|
|
long_description {*}${description}
|
|
|
|
github.tarball_from archive
|
|
|
|
# Match spdlog port:
|
|
set fmt_v 10
|
|
|
|
cmake.prefix_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
|
|
|
|
patchfiles-append patch-CMakeLists.diff
|
|
|
|
compiler.cxx_standard 2017
|
|
|
|
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
|