2023-03-07 23:55:28 +08:00
|
|
|
# -*- 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.0
|
|
|
|
|
PortGroup github 1.0
|
|
|
|
|
|
|
|
|
|
github.setup JamesYang007 FastAD 3.2.1 v
|
2025-01-25 02:50:03 +11:00
|
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
|
|
|
github.tarball_from tarball
|
2023-03-07 23:55:28 +08:00
|
|
|
revision 0
|
|
|
|
|
license MIT
|
|
|
|
|
categories math
|
2026-04-11 19:42:02 +04:00
|
|
|
maintainers nomaintainer
|
2023-03-07 23:55:28 +08:00
|
|
|
description FastAD is a C++ implementation of automatic differentiation both forward and reverse mode
|
|
|
|
|
long_description {*}${description}
|
|
|
|
|
checksums rmd160 a2472c50a0a5b50cd623307d7d2b698df7b81f09 \
|
|
|
|
|
sha256 062a07ff4180e9ad9b41c64c2fb5237da44a7c8f0e85fd74ca6dd6e08f8b7789 \
|
|
|
|
|
size 86856
|
|
|
|
|
supported_archs noarch
|
2024-01-18 22:10:28 +11:00
|
|
|
platforms any
|
2023-03-07 23:55:28 +08:00
|
|
|
|
|
|
|
|
depends_build-append \
|
|
|
|
|
port:gtest
|
2023-06-21 10:48:59 -04:00
|
|
|
depends_lib-append path:share/pkgconfig/eigen3.pc:eigen3
|
2023-03-07 23:55:28 +08:00
|
|
|
|
|
|
|
|
compiler.cxx_standard 2017
|
|
|
|
|
|
|
|
|
|
patchfiles patch-gtest.diff
|
|
|
|
|
|
|
|
|
|
post-patch {
|
|
|
|
|
reinplace "s,@GTESTDIR@,${prefix}/src/googletest," ${worksrcpath}/CMakeLists.txt
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configure.args-append \
|
|
|
|
|
-DFASTAD_ENABLE_BENCHMARK=OFF \
|
|
|
|
|
-DFASTAD_ENABLE_COVERAGE=OFF \
|
|
|
|
|
-DFASTAD_ENABLE_EXAMPLE=OFF \
|
|
|
|
|
-DFASTAD_ENABLE_TEST=ON \
|
|
|
|
|
-DGTEST_DIR=${prefix}/src/googletest
|
|
|
|
|
|
|
|
|
|
test.run yes
|