2017-11-08 14:08:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO htacg/tidy-html5
|
2022-07-08 05:33:38 +08:00
|
|
|
REF 5.8.0
|
|
|
|
SHA512 f352165bdda5d1fca7bba3365560b64d6f70a4e010821cd246cde43bed5c23cea3408d461d3f889110fd35ec9b68aa2b4e95412b07775eb852b7ee1745007a44
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2022-07-08 05:33:38 +08:00
|
|
|
PATCHES
|
|
|
|
disable-doc.patch
|
|
|
|
static-vs-shared.patch
|
|
|
|
debug-postfix.patch
|
2024-01-30 12:00:07 +08:00
|
|
|
fix_unsupport_func_uwp.patch
|
2024-10-03 03:04:17 +08:00
|
|
|
cmake_find_package_support.patch
|
2017-11-08 14:08:05 +08:00
|
|
|
)
|
2017-11-09 03:18:21 +08:00
|
|
|
|
2022-07-08 05:33:38 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIB)
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-01 00:31:22 +08:00
|
|
|
NO_CHARSET_FLAG
|
2017-11-09 03:18:21 +08:00
|
|
|
OPTIONS
|
2022-07-08 05:33:38 +08:00
|
|
|
-DBUILD_SHARED_LIB=${BUILD_SHARED_LIB}
|
|
|
|
-DTIDY_CONSOLE_SHARED=${BUILD_SHARED_LIB}
|
2017-11-08 14:08:05 +08:00
|
|
|
)
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-07-08 05:33:38 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2024-10-03 03:04:17 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-tidy-html5 CONFIG_PATH lib/cmake/unofficial-tidy-html5)
|
2017-11-08 14:08:05 +08:00
|
|
|
|
2022-07-08 05:33:38 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin/tidyd${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
|
|
|
|
)
|
2020-03-11 06:59:38 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES tidy AUTO_CLEAN)
|
2017-11-09 03:18:21 +08:00
|
|
|
|
2022-03-17 02:48:58 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|