2020-03-05 01:22:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nuspell/nuspell
|
2022-10-01 05:34:02 +08:00
|
|
|
REF v5.1.2
|
|
|
|
SHA512 138212ae5340836f0bc85d9d5327dc43ffdb1481ca72678b4619938b86c4c8e7c156eec1446f459636460a9015cd476031ad53d0979325e637ed97c19e2f87c8
|
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)
|