diff --git a/math/Sophus/Portfile b/math/Sophus/Portfile index 4cedef4cec452..0282b636c8b74 100644 --- a/math/Sophus/Portfile +++ b/math/Sophus/Portfile @@ -4,7 +4,7 @@ PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 -github.setup strasdat Sophus 1.0.0 v +github.setup strasdat Sophus 1.22.10 categories math platforms any license MIT @@ -18,10 +18,26 @@ long_description This is a c++ implementation of Lie groups commonly used for to present rotations in 2d and 3d as well as the special Euclidean group SE(2) \ and SE(3) to represent rigid body transformations (i.e. rotations and translations) in 2d and 3d. -depends_lib-append port:eigen3 +set port_libfmt libfmt9 +cmake.module_path-append \ + ${prefix}/lib/${port_libfmt}/cmake + +depends_lib-append path:include/eigen3:eigen3 \ + port:${port_libfmt} -checksums rmd160 6e1bda06cd4aac020843d05b97dd3d0db9032ced \ - sha256 edab6a5c60ded38b4304103cd9d384d2d7591b9949bde3b95859f7bb1b5355a5 +checksums rmd160 25ed84a989a16df4abf424dfdf7e4e0e32f28deb \ + sha256 ca5d3f8955f7da6ec3c24b641d5a1a20f6f4cd9f031023e0eeaa4bb6bd9edf11 \ + size 104186 + +compiler.cxx_standard 2014 configure.args-append \ - -DBUILD_TESTS=OFF + -DBUILD_SOPHUS_EXAMPLES=OFF \ + -DBUILD_SOPHUS_TESTS=OFF + +variant tests description "Build and run tests" { + # Notice that there are a few failures on PPC: https://github.com/strasdat/Sophus/issues/448 + configure.args-replace \ + -DBUILD_SOPHUS_TESTS=OFF -DBUILD_SOPHUS_TESTS=ON + test.run yes +}