2017-10-19 20:19:29 +08:00
|
|
|
set(LIB_NAME gmime)
|
2020-02-29 14:30:06 +08:00
|
|
|
set(LIB_VERSION 3.2.6)
|
2017-10-19 20:19:29 +08:00
|
|
|
|
|
|
|
set(LIB_FILENAME ${LIB_NAME}-${LIB_VERSION}.tar.xz)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2019-02-28 04:04:50 +08:00
|
|
|
URLS "https://download.gnome.org/sources/gmime/3.2/${LIB_FILENAME}"
|
2017-10-19 20:19:29 +08:00
|
|
|
FILENAME "${LIB_FILENAME}"
|
2020-02-29 14:30:06 +08:00
|
|
|
SHA512 a60d3f9f1aa8490865c22cd9539544e9c9f3ceb4037b9749cf9e5c279f97aa88fc4cd077bf2aff314ba0db2a1b7bbe76f9b1ca5a17fffcbd6315ecebc5414a3d
|
2017-10-19 20:19:29 +08:00
|
|
|
)
|
2019-04-30 00:56:18 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2023-04-22 05:48:12 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
SOURCE_BASE "${LIB_VERSION}"
|
2019-04-30 00:56:18 +08:00
|
|
|
)
|
2017-10-19 20:19:29 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-10-19 20:19:29 +08:00
|
|
|
|
|
|
|
# We can use file supplied with original sources
|
2023-04-22 05:48:12 +08:00
|
|
|
configure_file("${SOURCE_PATH}/build/vs2017/unistd.h" "${SOURCE_PATH}" COPYONLY)
|
|
|
|
configure_file("${SOURCE_PATH}/build/vs2017/config.h" "${SOURCE_PATH}" COPYONLY)
|
|
|
|
configure_file("${SOURCE_PATH}/build/vs2017/gmime.def" "${SOURCE_PATH}" COPYONLY)
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-27 01:28:21 +08:00
|
|
|
OPTIONS
|
2023-04-22 05:48:12 +08:00
|
|
|
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
2017-10-19 20:19:29 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-10-19 20:19:29 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-10-19 20:19:29 +08:00
|
|
|
|
|
|
|
# License and man
|
2023-04-22 05:48:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${LIB_NAME}" RENAME copyright)
|
2017-10-19 20:19:29 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|