2021-04-20 08:17:38 +08:00
|
|
|
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
|
2023-06-15 03:50:43 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 9193381fd9d4925259f28a03da33231b3da1273237e7510b93da1ca076610455746feb4ea0d8aa9a4a9e46a5f5f344fc1322f7ffc57963837dbe8b0be0b811ac
|
2021-04-20 08:17:38 +08:00
|
|
|
HEAD_REF master
|
2021-05-01 01:59:39 +08:00
|
|
|
PATCHES
|
2023-06-15 03:50:43 +08:00
|
|
|
fix-dependencies.patch
|
2021-04-20 08:17:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2023-06-15 03:50:43 +08:00
|
|
|
opengl MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND
|
2021-05-01 01:59:39 +08:00
|
|
|
jpeg WITH_JPEG
|
|
|
|
tiff WITH_TIFF
|
|
|
|
zlib WITH_ZLIB
|
|
|
|
lapack WITH_LAPACK
|
|
|
|
blas WITH_BLAS
|
|
|
|
fftw3 WITH_FFTW3
|
|
|
|
opencv WITH_OPENCV
|
2021-04-20 08:17:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-05-17 20:15:06 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-05-01 01:59:39 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2023-06-15 03:50:43 +08:00
|
|
|
-DMATPLOTPP_BUILD_EXAMPLES=OFF
|
|
|
|
-DMATPLOTPP_BUILD_TESTS=OFF
|
|
|
|
-DMATPLOTPP_BUILD_INSTALLER=ON
|
|
|
|
-DMATPLOTPP_BUILD_PACKAGE=OFF
|
|
|
|
-DMATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS=OFF
|
2021-04-20 08:17:38 +08:00
|
|
|
-DWITH_SYSTEM_CIMG=ON
|
2023-06-15 03:50:43 +08:00
|
|
|
-DMATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP=${BUILD_WORLD_MAP}
|
|
|
|
-DMATPLOTPP_BUILD_WITH_SANITIZERS=OFF
|
2021-04-20 08:17:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2021-05-01 01:59:39 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-06-25 04:08:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME matplot++ CONFIG_PATH lib/cmake/Matplot++)
|
2021-04-20 08:17:38 +08:00
|
|
|
|
2021-06-12 00:22:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-04-20 08:17:38 +08:00
|
|
|
|
2021-06-12 00:22:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2023-06-15 03:50:43 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/matplotplusplus/")
|