diff --git a/graphics/matplotplusplus/Makefile b/graphics/matplotplusplus/Makefile index dabc4371caa3..fd99d1e3a841 100644 --- a/graphics/matplotplusplus/Makefile +++ b/graphics/matplotplusplus/Makefile @@ -1,30 +1,33 @@ PORTNAME= matplotplusplus DISTVERSIONPREFIX= v -DISTVERSION= 1.2.1 -PORTREVISION= 5 +DISTVERSION= 1.2.2 CATEGORIES= graphics devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ graphics library for data visualization -WWW= https://alandefreitas.github.io/matplotplusplus/ +WWW= https://alandefreitas.github.io/matplotplusplus/ \ + https://github.com/alandefreitas/matplotplusplus LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libopenblas.so:math/openblas \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff RUN_DEPENDS= gnuplot:math/gnuplot -USES= cmake compiler:c++17-lang jpeg +USES= cmake:testing compiler:c++17-lang jpeg USE_WX= 3.2+ USE_GITHUB= yes GH_ACCOUNT= alandefreitas CMAKE_ON= BUILD_SHARED_LIBS -CMAKE_OFF= BUILD_TESTING BUILD_EXAMPLES +CMAKE_OFF= BUILD_TESTING MATPLOTPP_BUILD_EXAMPLES +CMAKE_TESTING_ON= BUILD_TESTING MATPLOTPP_BUILD_TESTS MATPLOTPP_BUILD_EXAMPLES + +# tests as of 1.2.2: 100% tests passed, 0 tests failed out of 545 (tests need ENTER to be pressed for them to proceed, see https://github.com/alandefreitas/matplotplusplus/issues/478) .include diff --git a/graphics/matplotplusplus/distinfo b/graphics/matplotplusplus/distinfo index 2501a45af2bb..5fa97e4af366 100644 --- a/graphics/matplotplusplus/distinfo +++ b/graphics/matplotplusplus/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714116673 -SHA256 (alandefreitas-matplotplusplus-v1.2.1_GH0.tar.gz) = 9dd7cc92b2425148f50329f5a3bf95f9774ac807657838972d35334b5ff7cb87 -SIZE (alandefreitas-matplotplusplus-v1.2.1_GH0.tar.gz) = 38999774 +TIMESTAMP = 1764082873 +SHA256 (alandefreitas-matplotplusplus-v1.2.2_GH0.tar.gz) = c7434b4fea0d0cc3508fd7104fafbb2fa7c824b1d2ccc51c52eaee26fc55a9a0 +SIZE (alandefreitas-matplotplusplus-v1.2.2_GH0.tar.gz) = 39002649 diff --git a/graphics/matplotplusplus/files/patch-source_matplot_util_popen.cpp b/graphics/matplotplusplus/files/patch-source_matplot_util_popen.cpp new file mode 100644 index 000000000000..b5377630c1e6 --- /dev/null +++ b/graphics/matplotplusplus/files/patch-source_matplot_util_popen.cpp @@ -0,0 +1,11 @@ +--- source/matplot/util/popen.cpp.orig 2025-11-25 15:11:25 UTC ++++ source/matplot/util/popen.cpp +@@ -121,7 +121,7 @@ int common_pipe::close(int *exit_code) + } + #endif // _WIN32 implementtion + +-#if defined(__linux) || defined(__APPLE__) ++#if defined(__linux) || defined(__APPLE__) || defined(__FreeBSD__) + + #include + #include // waitpid diff --git a/graphics/matplotplusplus/files/patch-source_matplot_util_popen.h b/graphics/matplotplusplus/files/patch-source_matplot_util_popen.h new file mode 100644 index 000000000000..64cc9233d281 --- /dev/null +++ b/graphics/matplotplusplus/files/patch-source_matplot_util_popen.h @@ -0,0 +1,11 @@ +--- source/matplot/util/popen.h.orig 2025-11-25 15:02:56 UTC ++++ source/matplot/util/popen.h +@@ -23,7 +23,7 @@ class proc_pipe (protected) + FILE *file_ = nullptr; ///< C file handle for I/O (not both) + }; + +-#elif defined(__linux) || defined(__APPLE__) ++#elif defined(__linux) || defined(__APPLE__) || defined(__FreeBSD__) + + #include // pid_t + diff --git a/graphics/matplotplusplus/pkg-plist b/graphics/matplotplusplus/pkg-plist index df66f3ce6a0b..488818087c76 100644 --- a/graphics/matplotplusplus/pkg-plist +++ b/graphics/matplotplusplus/pkg-plist @@ -1,52 +1,53 @@ include/matplot/axes_objects/bars.h include/matplot/axes_objects/box_chart.h include/matplot/axes_objects/circles.h include/matplot/axes_objects/contours.h include/matplot/axes_objects/error_bar.h include/matplot/axes_objects/filled_area.h include/matplot/axes_objects/function_line.h include/matplot/axes_objects/histogram.h include/matplot/axes_objects/labels.h include/matplot/axes_objects/line.h include/matplot/axes_objects/matrix.h include/matplot/axes_objects/network.h include/matplot/axes_objects/parallel_lines.h include/matplot/axes_objects/stair.h include/matplot/axes_objects/string_function.h include/matplot/axes_objects/surface.h include/matplot/axes_objects/vectors.h include/matplot/backend/backend_interface.h include/matplot/backend/backend_registry.h include/matplot/backend/gnuplot.h include/matplot/backend/opengl.h include/matplot/backend/opengl_embed.h include/matplot/core/axes_object.h include/matplot/core/axes_type.h include/matplot/core/axis_type.h include/matplot/core/figure_registry.h include/matplot/core/figure_type.h include/matplot/core/legend.h include/matplot/core/line_spec.h include/matplot/detail/config.h include/matplot/detail/exports.h include/matplot/freestanding/axes_functions.h include/matplot/freestanding/axes_lim.h include/matplot/freestanding/figure_functions.h include/matplot/freestanding/histcounts.h include/matplot/freestanding/plot.h include/matplot/matplot.h include/matplot/util/colors.h include/matplot/util/common.h include/matplot/util/concepts.h include/matplot/util/contourc.h include/matplot/util/geodata.h include/matplot/util/handle_types.h include/matplot/util/keywords.h include/matplot/util/popen.h include/matplot/util/type_traits.h lib/cmake/Matplot++/Matplot++Config.cmake lib/cmake/Matplot++/Matplot++ConfigVersion.cmake lib/cmake/Matplot++/Matplot++Targets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/Matplot++/Matplot++Targets.cmake lib/libmatplot.so +lib/libmatplot.so.1 lib/libmatplot.so.1.2.0