2022-11-22 01:08:15 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
2018-03-24 07:24:04 +08:00
|
|
|
|
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
|
2023-10-13 10:23:11 +08:00
|
|
|
REF "${VERSION}%20Source"
|
2022-11-22 01:08:15 +08:00
|
|
|
FILENAME "plplot-${VERSION}.tar.gz"
|
|
|
|
SHA512 54533245569b724a7ef90392cc6e9ae65873e6cbab923df0f841c8b43def5e4307690894c7681802209bd3c8df97f54285310a706428f79b3340cce3207087c8
|
2019-01-11 03:54:05 +08:00
|
|
|
PATCHES
|
2022-11-22 01:08:15 +08:00
|
|
|
subdirs.patch
|
|
|
|
install-interface-include-directories.patch
|
|
|
|
use-math-h-nan.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
|
2022-11-22 01:08:15 +08:00
|
|
|
x11 PLD_xwin
|
|
|
|
x11 CMAKE_REQUIRE_FIND_PACKAGE_X11
|
|
|
|
INVERTED_FEATURES
|
|
|
|
x11 CMAKE_DISABLE_FIND_PACKAGE_X11
|
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
|
2022-11-22 01:08:15 +08:00
|
|
|
-DDEFAULT_NO_QT_DEVICES=ON
|
2021-12-29 09:59:01 +08:00
|
|
|
-DENABLE_cxx=ON
|
2018-03-24 07:24:04 +08:00
|
|
|
-DENABLE_DYNDRIVERS=OFF
|
2022-11-22 01:08:15 +08:00
|
|
|
-DENABLE_qt=OFF
|
|
|
|
-DENABLE_tk=OFF
|
|
|
|
-DHAVE_SHAPELIB=OFF
|
|
|
|
-DPL_DOUBLE=ON
|
|
|
|
-DPL_HAVE_QHULL=OFF
|
|
|
|
-DPLD_aqt=OFF # needs aquaterm framework
|
|
|
|
-DPLD_pdf=OFF # needs haru
|
|
|
|
-DPLD_psttf=OFF # needs lasi (in addition to pango)
|
2021-11-13 08:40:14 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2022-11-22 01:08:15 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG=ON
|
|
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON
|
2018-03-24 07:24:04 +08:00
|
|
|
OPTIONS_DEBUG
|
2022-11-22 01:08:15 +08:00
|
|
|
"-DDATA_DIR=${CURRENT_PACKAGES_DIR}/debug/share/${PORT}/data"
|
|
|
|
"-DDOC_DIR=${CURRENT_PACKAGES_DIR}/debug/share/${PORT}/doc"
|
2018-03-24 07:24:04 +08:00
|
|
|
OPTIONS_RELEASE
|
2022-11-22 01:08:15 +08:00
|
|
|
"-DDATA_DIR=${CURRENT_PACKAGES_DIR}/share/${PORT}/data"
|
|
|
|
"-DDOC_DIR=${CURRENT_PACKAGES_DIR}/share/${PORT}/doc"
|
2018-03-24 07:24:04 +08:00
|
|
|
)
|
|
|
|
|
2021-11-13 08:40:14 +08:00
|
|
|
vcpkg_cmake_install()
|
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)
|
2022-11-22 01:08:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-11-13 08:40:14 +08:00
|
|
|
|
2022-11-22 01:08:15 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2018-03-24 07:24:04 +08:00
|
|
|
)
|
|
|
|
|
2022-11-22 01:08:15 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(
|
|
|
|
FILE_LIST
|
|
|
|
"${SOURCE_PATH}/Copyright"
|
|
|
|
"${SOURCE_PATH}/COPYING.LIB"
|
|
|
|
)
|