2018-03-24 07:24:04 +08:00
|
|
|
set(PLPLOT_VERSION 5.13.0)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-01-11 03:54:05 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO plplot/plplot
|
|
|
|
REF ${PLPLOT_VERSION}%20Source
|
|
|
|
FILENAME "plplot-${PLPLOT_VERSION}.tar.gz"
|
|
|
|
SHA512 1d5cb5da17d4bde6d675585bff1f8dcb581719249a0b2687867e767703f8dab0870e7ea44b9549a497f4ac0141a3cabf6761c49520c0e2b26ffe581468512cbb
|
2019-01-11 03:54:05 +08:00
|
|
|
PATCHES
|
2020-01-16 08:37:07 +08:00
|
|
|
0001-findwxwidgets-fixes.patch
|
|
|
|
0002-wxwidgets-dev-fixes.patch
|
|
|
|
install-interface-include-directories.patch
|
|
|
|
use-math-h-nan.patch
|
|
|
|
fix_utils.patch
|
2020-10-20 08:18:39 +08:00
|
|
|
fix-pkg-config.patch
|
2019-01-11 03:54:05 +08:00
|
|
|
)
|
2018-03-24 07:24:04 +08:00
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-11-24 12:47:51 +08:00
|
|
|
wxwidgets PLD_wxwidgets
|
|
|
|
wxwidgets ENABLE_wxwidgets
|
2021-11-13 08:40:14 +08:00
|
|
|
)
|
2018-03-24 07:24:04 +08:00
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-24 07:24:04 +08:00
|
|
|
OPTIONS
|
2021-12-29 09:59:01 +08:00
|
|
|
-DDEFAULT_NO_BINDINGS=ON
|
|
|
|
-DENABLE_cxx=ON
|
2021-08-05 04:27:40 +08:00
|
|
|
-DPL_HAVE_QHULL=OFF
|
|
|
|
-DPLPLOT_USE_QT5=OFF
|
2018-03-24 07:24:04 +08:00
|
|
|
-DPL_DOUBLE=ON
|
|
|
|
-DENABLE_DYNDRIVERS=OFF
|
|
|
|
-DDATA_DIR=${CURRENT_PACKAGES_DIR}/share/plplot
|
2021-11-13 08:40:14 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-03-24 07:24:04 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDRV_DIR=${CURRENT_PACKAGES_DIR}/debug/bin
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DDRV_DIR=${CURRENT_PACKAGES_DIR}/bin
|
|
|
|
)
|
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-24 07:24:04 +08:00
|
|
|
|
2020-06-13 04:09:46 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/plplot)
|
|
|
|
|
2018-03-24 07:24:04 +08:00
|
|
|
# Remove unnecessary tool
|
|
|
|
file(REMOVE
|
2021-11-13 08:40:14 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin/pltek.exe"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/bin/pltek.exe"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin/wxPLViewer.exe"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/bin/wxPLViewer.exe"
|
2018-03-24 07:24:04 +08:00
|
|
|
)
|
|
|
|
|
2018-04-11 01:49:55 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
message(STATUS "Static build: Removing the full bin directory.")
|
|
|
|
file(REMOVE_RECURSE
|
2021-11-13 08:40:14 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/bin"
|
2018-04-11 01:49:55 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2018-03-24 07:24:04 +08:00
|
|
|
# Remove unwanted and duplicate directories
|
2021-11-13 08:40:14 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-12-02 11:20:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/plplot/examples")
|
2021-11-13 08:40:14 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2018-03-24 07:24:04 +08:00
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|