2020-03-05 01:22:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nuspell/nuspell
|
2023-11-17 04:49:12 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d
|
2020-03-05 01:22:42 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2022-05-06 04:47:56 +08:00
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools BUILD_TOOLS
|
|
|
|
)
|
|
|
|
|
2022-05-03 11:43:03 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2022-05-06 04:47:56 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2022-05-03 11:43:03 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2020-03-05 01:22:42 +08:00
|
|
|
)
|
2022-05-03 11:43:03 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-05-06 04:47:56 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-05-03 11:43:03 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nuspell)
|
2020-11-13 04:42:40 +08:00
|
|
|
vcpkg_fixup_pkgconfig(
|
|
|
|
# nuspell.pc depends on icu-uc.pc which has -lm specified as private
|
|
|
|
# library. Ignore this -lm, otherwise this function shows error
|
|
|
|
# because it can't find this. -lm is part of glibc on Linux.
|
|
|
|
SYSTEM_LIBRARIES m
|
|
|
|
)
|
2022-05-06 04:47:56 +08:00
|
|
|
|
|
|
|
if (BUILD_TOOLS)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES nuspell AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
2020-03-05 01:22:42 +08:00
|
|
|
file(REMOVE_RECURSE
|
2022-05-03 11:43:03 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2020-11-13 04:42:40 +08:00
|
|
|
)
|
2022-05-06 04:47:56 +08:00
|
|
|
|
2022-05-03 11:43:03 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|