Files

42 lines
1.4 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.0
PortGroup github 1.0
github.setup JamesYang007 FastAD 3.2.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
license MIT
categories math
maintainers nomaintainer
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
platforms any
depends_build-append \
port:gtest
depends_lib-append path:share/pkgconfig/eigen3.pc:eigen3
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