mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 00:57:50 +08:00
1d20fa46bc
- [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] The "supports" clause reflects platforms that may be fixed by this new version. - [ ] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [ ] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
55 lines
1.9 KiB
CMake
55 lines
1.9 KiB
CMake
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/")
|