2019-08-31 00:38:47 +08:00
|
|
|
if (VCPKG_TARGET_TRIPLET STREQUAL "x64-uwp" OR VCPKG_TARGET_TRIPLET STREQUAL "arm64-windows" OR VCPKG_TARGET_TRIPLET STREQUAL "arm-uwp")
|
|
|
|
message(FATAL_ERROR "mecab does not support on this platform")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taku910/mecab
|
2020-09-25 06:15:06 +08:00
|
|
|
REF 3a07c4eefaffb4e7a0690a7f4e5e0263d3ddb8a3
|
|
|
|
SHA512 d3288cca7207daf66df4349819b64fc9cc069c775512cf0607ca855e9e5512509c36b0e2bb0e955478acae13ff0c35df7442f18a8458fab0ed664d62854c0b25
|
2019-08-31 00:38:47 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix_wpath_unsigned.patch
|
2023-08-24 13:32:05 +08:00
|
|
|
fix-missing-functional.patch
|
2019-08-31 00:38:47 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/mecab/src")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}/mecab/src")
|
|
|
|
file(COPY "${SOURCE_PATH}/mecab/COPYING" DESTINATION "${SOURCE_PATH}/mecab/src")
|
2019-08-31 00:38:47 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/mecab/src"
|
|
|
|
WINDOWS_USE_MSBUILD
|
2024-06-12 04:26:30 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_CXX_STANDARD=11 # 17 does not allow 'register'
|
2019-08-31 00:38:47 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2019-08-31 00:38:47 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-08-24 13:32:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/mecab/COPYING")
|