2020-03-05 01:22:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nuspell/nuspell
|
2021-01-06 04:39:10 +08:00
|
|
|
REF v4.2.0
|
|
|
|
SHA512 ae9157e9753868c002ed69a765fb705d29d993f3940e11efbc2699778a8b1abee2eb7daa0ff51187b899d6935a215a24662e5b52ec1ef5c644e90a0245f7583d
|
2020-03-05 01:22:42 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES cmake-disable-cli-and-docs.patch
|
|
|
|
# This patch disables building the CLI tool and leaves only the library.
|
|
|
|
# That is because Vcpkg complains when it finds .exe files in the folder
|
|
|
|
# "bin". Instead it expects them under "tools", which is different
|
|
|
|
# convention than on Unixes. This patch is quick fix, the CLI is not
|
|
|
|
# that important.
|
|
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS -DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(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
|
|
|
|
)
|
2020-03-05 01:22:42 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
2020-11-13 04:42:40 +08:00
|
|
|
)
|
2020-03-05 01:22:42 +08:00
|
|
|
file(
|
|
|
|
INSTALL ${SOURCE_PATH}/COPYING.LESSER
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
|
|
|
RENAME copyright)
|