2021-03-20 00:55:04 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO karastojko/mailio
|
2023-11-07 02:24:23 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 e1eee9f5b80dab16017af475b8c13f8278fa3d73e1c446e507dc122cb3df5b984b41c04d753e36cf848dd15029524f95cf48e050cee265c8933b0be1ea500a5d
|
2021-03-20 00:55:04 +08:00
|
|
|
HEAD_REF master
|
2023-11-07 02:24:23 +08:00
|
|
|
PATCHES fix-library-type-and-remove-boost-test-deps.patch
|
2021-03-20 00:55:04 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-03-29 03:57:11 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-03-20 00:55:04 +08:00
|
|
|
OPTIONS
|
|
|
|
-DMAILIO_BUILD_DOCUMENTATION=OFF
|
|
|
|
-DMAILIO_BUILD_EXAMPLES=OFF
|
2023-11-07 02:24:23 +08:00
|
|
|
-DMAILIO_BUILD_TESTS=OFF
|
2021-03-20 00:55:04 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
2022-04-06 02:17:23 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
CONFIG_PATH share/mailio/cmake
|
|
|
|
)
|
2021-03-20 00:55:04 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-11-07 02:24:23 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-03-20 00:55:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|