2021-01-21 11:23:41 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET uwp)
|
2019-09-25 02:25:22 +08:00
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO chokkan/crfsuite
|
|
|
|
REF 5d1bd3b803bb26582ed5cc274d6b5af6cc7f9cae
|
2021-01-21 11:23:41 +08:00
|
|
|
SHA512 e7f329f96fb0dc0e347b3e7a3e26b23ceb45e6fae7b59ace05633a24d58a31665826ebc5280e5a864f50598772791e4b5b3e7da7f46994655cbe03806f823f73
|
2019-09-25 02:25:22 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-01-21 11:23:41 +08:00
|
|
|
list(REMOVE_ITEM SOURCE_FILE "${SOURCE_PATH}/win32/liblbfgs/lbfgs.lib")
|
|
|
|
list(REMOVE_ITEM SOURCE_FILE "${SOURCE_PATH}/win32/liblbfgs/lbfgs_debug.lib")
|
2019-09-25 02:25:22 +08:00
|
|
|
|
2021-01-21 11:23:41 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-09-25 02:25:22 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2021-01-21 11:23:41 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-25 02:25:22 +08:00
|
|
|
PREFIX_NINJA
|
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-01-21 11:23:41 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-25 02:25:22 +08:00
|
|
|
|
2021-01-21 11:23:41 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|