vcpkg/ports/mecab/portfile.cmake
xuchaoUCAS 82a6235770 [mecab] Add new port (#7589)
* [mecab] Add new port
2019-08-30 09:38:47 -07:00

36 lines
1.3 KiB
CMake

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()
include(vcpkg_common_functions)
set(MECAB_VERSION 0.996)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taku910/mecab
REF master
SHA512 2a7f1d159ddca846357b5bcab2d2b5de2e6a27dca4301cdd1cc52c155c352f9c7030b77d1187afe9c0a7f1b131a1acdcc40ee81ce7ba5c0fa6b2325c56676353
HEAD_REF master
PATCHES
fix_wpath_unsigned.patch
)
message(STATUS "source path is : ${SOURCE_PATH}")
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)
message(STATUS "CURRENT_PACKAGES_DIR is : ${CURRENT_PACKAGES_DIR}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/mecab/src
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(COPY ${SOURCE_PATH}/mecab/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mecab)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/mecab/COPYING ${CURRENT_PACKAGES_DIR}/share/mecab/copyright)
# Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME mecab)