aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/matplotplusplus/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/matplotplusplus/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/matplotplusplus/portfile.cmake')
-rw-r--r--vcpkg/ports/matplotplusplus/portfile.cmake54
1 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/matplotplusplus/portfile.cmake b/vcpkg/ports/matplotplusplus/portfile.cmake
new file mode 100644
index 0000000..dfd2f95
--- /dev/null
+++ b/vcpkg/ports/matplotplusplus/portfile.cmake
@@ -0,0 +1,54 @@
+message(STATUS " ${PORT}'s gnuplot backend currently requires Gnuplot 5.2.6+.
+ Windows users may get a pre-built binary installer from http://www.gnuplot.info/download.html.
+ Linux and MacOS users may install it from the system package manager.
+ Please visit https://alandefreitas.github.io/matplotplusplus/ for more information."
+)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO alandefreitas/matplotplusplus
+ REF "v${VERSION}"
+ SHA512 8ecb13fa206ff6762dec74c4de0778bf275e1ebf11ec1b48e8c0e544cf2990220e1be2b3bc9c658f06cb6714c9cc103fa81f10c079a32128218ebdaf265514d5
+ HEAD_REF master
+ PATCHES
+ fix-dependencies.patch
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ opengl MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND
+ jpeg WITH_JPEG
+ tiff WITH_TIFF
+ zlib WITH_ZLIB
+ lapack WITH_LAPACK
+ blas WITH_BLAS
+ fftw3 WITH_FFTW3
+ opencv WITH_OPENCV
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${FEATURE_OPTIONS}
+ -DMATPLOTPP_BUILD_EXAMPLES=OFF
+ -DMATPLOTPP_BUILD_TESTS=OFF
+ -DMATPLOTPP_BUILD_INSTALLER=ON
+ -DMATPLOTPP_BUILD_PACKAGE=OFF
+ -DMATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS=OFF
+ -DWITH_SYSTEM_CIMG=ON
+ -DMATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP=${BUILD_WORLD_MAP}
+ -DMATPLOTPP_BUILD_WITH_SANITIZERS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME matplot++ CONFIG_PATH lib/cmake/Matplot++)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/matplotplusplus/")