2018-10-22 19:00:49 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO hunspell/hunspell
|
2019-03-13 06:54:45 +08:00
|
|
|
REF v1.7.0
|
|
|
|
SHA512 8149b2e8b703a0610c9ca5160c2dfad3cf3b85b16b3f0f5cfcb7ebb802473b2d499e8e2d0a637a97a37a24d62424e82d3880809210d3f043fa17a4970d47c903
|
2018-10-22 19:00:49 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES 0001_fix_unistd.patch
|
2017-07-25 08:12:30 +08:00
|
|
|
)
|
|
|
|
|
2020-04-04 01:28:02 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
tools BUILD_TOOLS
|
|
|
|
)
|
|
|
|
|
2021-04-10 00:50:00 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
set(ENV{CFLAGS} "$ENV{CFLAGS} -DHUNSPELL_STATIC")
|
|
|
|
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -DHUNSPELL_STATIC")
|
|
|
|
endif()
|
|
|
|
if(NOT "tools" IN_LIST FEATURES) # Building the tools is not possible on windows!
|
|
|
|
file(READ "${SOURCE_PATH}/src/Makefile.am" _contents)
|
|
|
|
string(REPLACE " parsers tools" "" _contents "${_contents}")
|
|
|
|
file(WRITE "${SOURCE_PATH}/src/Makefile.am" "${_contents}")
|
|
|
|
endif()
|
|
|
|
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
|
|
|
vcpkg_configure_make(
|
2017-07-25 08:12:30 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-04-10 00:50:00 +08:00
|
|
|
OPTIONS
|
|
|
|
AUTOCONFIG
|
|
|
|
ADDITIONAL_MSYS_PACKAGES gzip
|
2017-07-25 08:12:30 +08:00
|
|
|
)
|
2021-04-10 00:50:00 +08:00
|
|
|
#install-pkgconfDATA:
|
|
|
|
vcpkg_build_make(BUILD_TARGET dist LOGFILE_ROOT build-dist)
|
|
|
|
vcpkg_install_make()
|
2017-07-25 08:12:30 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-04-10 00:50:00 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-07-25 08:12:30 +08:00
|
|
|
|
2021-04-10 00:50:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug")
|
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
2017-07-25 08:12:30 +08:00
|
|
|
|
2020-04-04 01:28:02 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING.LESSER DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright-lgpl)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING.MPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright-mpl)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|