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}"
|
2024-10-08 03:05:59 +08:00
|
|
|
SHA512 ab6d9394a55d9a2a347ccae47aeef6a96af70f421ad6ea8f7ac7fde2052790f37fb1c7ec3112daac7600d193430a560cb1915ab6557c9353717f65cb32f13ab8
|
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
|
2024-10-08 03:05:59 +08:00
|
|
|
-DBUILD_DOCS=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)
|