2022-03-16 06:24:05 +08:00
|
|
|
set(7ZIP_VERSION "2107")
|
2019-07-11 04:56:07 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2022-03-16 06:24:05 +08:00
|
|
|
URLS "https://www.7-zip.org/a/7z${7ZIP_VERSION}-src.7z"
|
|
|
|
FILENAME "7z${7ZIP_VERSION}-src.7z"
|
2022-03-05 05:43:33 +08:00
|
|
|
SHA512 c13521a9829ac239a89015e1f5da27eeaa2469754e3f8ca32311d964ea9d0b40a17e4f8ccbd425d3e865aa768be345368f1c36f354d5710ac7cb2749dd6a3ab5
|
2019-07-11 04:56:07 +08:00
|
|
|
)
|
|
|
|
|
2022-03-16 06:24:05 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-07-11 04:56:07 +08:00
|
|
|
NO_REMOVE_ONE_LEVEL
|
|
|
|
)
|
|
|
|
|
2022-03-16 06:24:05 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/7zip-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
2019-07-11 04:56:07 +08:00
|
|
|
|
2022-03-05 05:43:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-11 04:56:07 +08:00
|
|
|
)
|
|
|
|
|
2022-03-05 05:43:33 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-11 04:56:07 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-03-05 05:43:33 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
|
2019-07-11 04:56:07 +08:00
|
|
|
file(
|
2022-03-05 05:43:33 +08:00
|
|
|
INSTALL "${SOURCE_PATH}/DOC/License.txt"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2019-07-11 04:56:07 +08:00
|
|
|
RENAME copyright
|
|
|
|
)
|