2017-05-25 14:33:16 +08:00
## # vcpkg_acquire_msys
##
## Download and prepare an MSYS2 instance.
##
## ## Usage
## ```cmake
2020-09-01 13:36:25 +08:00
## vcpkg_acquire_msys(<MSYS_ROOT_VAR>
## PACKAGES <package>...
## [NO_DEFAULT_PACKAGES]
## [DIRECT_PACKAGES <URL> <SHA512> <URL> <SHA512> ...]
## )
2017-05-25 14:33:16 +08:00
## ```
##
## ## Parameters
## ### MSYS_ROOT_VAR
## An out-variable that will be set to the path to MSYS2.
##
2018-02-24 16:00:51 +08:00
## ### PACKAGES
## A list of packages to acquire in msys.
##
2020-09-01 13:36:25 +08:00
## To ensure a package is available: `vcpkg_acquire_msys(MSYS_ROOT PACKAGES make automake1.16)`
##
## ### NO_DEFAULT_PACKAGES
## Exclude the normal base packages.
##
## The list of base packages includes: bash, coreutils, sed, grep, gawk, diffutils, make, and pkg-config
##
## ### DIRECT_PACKAGES
## A list of URL/SHA512 pairs to acquire in msys.
##
## This parameter can be used by a port to privately extend the list of msys packages to be acquired.
## The URLs can be found on the msys2 website[1] and should be a direct archive link:
2020-08-28 10:28:20 +08:00
##
2020-09-01 13:36:25 +08:00
## https://repo.msys2.org/mingw/i686/mingw-w64-i686-gettext-0.19.8.1-9-any.pkg.tar.zst
##
## [1] https://packages.msys2.org/search
2018-02-24 16:00:51 +08:00
##
2017-05-25 14:33:16 +08:00
## ## Notes
## A call to `vcpkg_acquire_msys` will usually be followed by a call to `bash.exe`:
## ```cmake
## vcpkg_acquire_msys(MSYS_ROOT)
## set(BASH ${MSYS_ROOT}/usr/bin/bash.exe)
##
## vcpkg_execute_required_process(
## COMMAND ${BASH} --noprofile --norc "${CMAKE_CURRENT_LIST_DIR}\\build.sh"
## WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
## LOGNAME build-${TARGET_TRIPLET}-rel
## )
## ```
##
## ## Examples
##
## * [ffmpeg](https://github.com/Microsoft/vcpkg/blob/master/ports/ffmpeg/portfile.cmake)
## * [icu](https://github.com/Microsoft/vcpkg/blob/master/ports/icu/portfile.cmake)
## * [libvpx](https://github.com/Microsoft/vcpkg/blob/master/ports/libvpx/portfile.cmake)
2017-03-02 23:29:00 +08:00
function ( vcpkg_acquire_msys PATH_TO_ROOT_OUT )
2020-09-01 13:36:25 +08:00
cmake_parse_arguments ( _am "NO_DEFAULT_PACKAGES" "" "PACKAGES;DIRECT_PACKAGES" ${ ARGN } )
2020-08-28 10:28:20 +08:00
2020-09-01 13:36:25 +08:00
set ( TOTAL_HASH 0 )
set ( ARCHIVES )
2017-04-25 13:47:50 +08:00
2020-09-01 13:36:25 +08:00
set ( PACKAGES ${ _am_PACKAGES } )
2018-08-09 01:51:33 +08:00
2020-09-01 13:36:25 +08:00
if ( NOT _am_NO_DEFAULT_PACKAGES )
list ( APPEND PACKAGES bash coreutils sed grep gawk diffutils make pkg-config )
2017-04-25 13:47:50 +08:00
endif ( )
2020-10-06 08:39:47 +08:00
macro ( msys_package_download URL SHA FILENAME )
set ( URLS "${URL}" )
# Mirror list from https://github.com/msys2/MSYS2-packages/blob/master/pacman-mirrors/mirrorlist.msys
# Sourceforge is not used because it does not keep older package versions
set ( MIRRORS
" h t t p s : / / w w w 2 . f u t u r e w a r e . a t / ~ n i c k o e / m s y s 2 - m i r r o r / "
" h t t p s : / / m i r r o r . y a n d e x . r u / m i r r o r s / m s y s 2 / "
" h t t p s : / / m i r r o r s . t u n a . t s i n g h u a . e d u . c n / m s y s 2 / "
" h t t p s : / / m i r r o r s . u s t c . e d u . c n / m s y s 2 / "
" h t t p s : / / m i r r o r . b i t . e d u . c n / m s y s 2 / "
" h t t p s : / / m i r r o r . s e l f n e t . d e / m s y s 2 / "
" h t t p s : / / m i r r o r s . s j t u g . s j t u . e d u . c n / m s y s 2 / "
)
foreach ( MIRROR IN LISTS MIRRORS )
string ( REPLACE "https://repo.msys2.org/" "${MIRROR}" MIRROR_URL "${URL}" )
list ( APPEND URLS "${MIRROR_URL}" )
endforeach ( )
vcpkg_download_distfile ( MSYS_ARCHIVE
U R L S $ { U R L S }
S H A 5 1 2 " $ { S H A } "
F I L E N A M E " m s y s - $ { F I L E N A M E } "
Q U I E T
)
string ( APPEND TOTAL_HASH "${SHA}" )
list ( APPEND ARCHIVES "${MSYS_ARCHIVE}" )
endmacro ( )
2020-09-01 13:36:25 +08:00
macro ( msys_package )
cmake_parse_arguments ( p "ZST;ANY" "URL;NAME;SHA512;VERSION;REPO" "DEPS" ${ ARGN } )
if ( p_URL AND NOT p_NAME )
if ( NOT p_URL MATCHES "^https://repo\\.msys2\\.org/.*/(([^-]+(-[^0-9][^-]*)*)-.+\\.pkg\\.tar\\.(xz|zst))\$" )
message ( FATAL_ERROR "Regex does not match supplied URL to vcpkg_acquire_msys: ${p_URL}" )
endif ( )
set ( FILENAME "${CMAKE_MATCH_1}" )
set ( p_NAME "${CMAKE_MATCH_2}" )
else ( )
if ( p_ZST )
set ( EXT zst )
else ( )
set ( EXT xz )
endif ( )
if ( p_ANY )
set ( ARCH any )
else ( )
set ( ARCH x86_64 )
endif ( )
if ( NOT p_REPO )
set ( p_REPO msys/x86_64 )
endif ( )
set ( FILENAME "${p_NAME}-${p_VERSION}-${ARCH}.pkg.tar.${EXT}" )
set ( p_URL "https://repo.msys2.org/${p_REPO}/${FILENAME}" )
endif ( )
if ( "${p_NAME}" IN_LIST PACKAGES )
list ( REMOVE_ITEM PACKAGES "${p_NAME}" )
list ( APPEND PACKAGES ${ p_DEPS } )
2020-10-06 08:39:47 +08:00
msys_package_download ( "${p_URL}" "${p_SHA512}" "${FILENAME}" )
2020-09-01 13:36:25 +08:00
endif ( )
endmacro ( )
2020-07-29 03:04:53 +08:00
2020-09-01 13:36:25 +08:00
unset ( N )
foreach ( P IN LISTS _am_DIRECT_PACKAGES )
if ( NOT DEFINED N )
set ( N "${P}" )
else ( )
get_filename_component ( FILENAME "${N}" NAME )
2020-10-06 08:39:47 +08:00
msys_package_download ( "${N}" "${P}" "${FILENAME}" )
2020-09-01 13:36:25 +08:00
unset ( N )
2020-07-29 03:04:53 +08:00
endif ( )
2020-09-01 13:36:25 +08:00
endforeach ( )
if ( DEFINED N )
message ( FATAL_ERROR "vcpkg_acquire_msys(... DIRECT_PACKAGES ...) requires exactly pairs of URL/SHA512" )
2017-03-02 23:29:00 +08:00
endif ( )
2020-09-01 13:36:25 +08:00
# To add new entries, use https://packages.msys2.org/package/$PACKAGE?repo=msys
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / u n z i p - 6 . 0 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 b 8 a 1 e 0 c e 6 d e f f 2 6 9 3 9 c b 4 6 2 6 7 f 8 0 a d a 0 a 6 2 3 b 7 d 7 8 2 e 8 0 8 7 3 c e a 3 d 3 8 8 b 4 d c 3 a 1 0 5 3 b 1 4 d 7 5 6 5 b 3 1 f 7 0 b c 9 0 4 b f 6 6 f 6 6 a b 5 8 c c c 1 c d 6 b f a 6 7 7 0 6 5 d e 1 f 2 7 9 d d 3 3 1 a f b 9
D E P S l i b b z 2
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b b z 2 - 1 . 0 . 8 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 d 1 2 8 b d 1 7 9 2 d 0 f 5 7 5 0 e 6 a 6 3 a 2 4 d b 8 6 a 7 9 1 e 7 e e 4 5 7 d b 8 c 0 b e f 6 8 d 2 1 7 0 9 9 b e 4 a 6 e e f 2 7 c 8 5 c a f 6 a d 0 9 b 0 b c d 5 b 3 c d a c 6 f c 0 a 2 b 9 8 4 2 c c 5 8 d 3 8 1 a 4 0 3 5 5 0 5 9 0 6 c c 4 8 0 3 e c
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / p a t c h - 2 . 7 . 6 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 0 4 d 0 6 b 9 d 5 4 7 9 f 1 2 9 f 5 6 e 8 2 9 0 e 0 a f e 2 5 2 1 7 f f a 4 5 7 e c 7 b e d 3 e 5 7 6 d f 0 8 d 4 a 8 5 e f f d 8 0 d 6 e 0 a d 8 2 b d 7 5 4 1 0 4 3 1 0 0 7 9 9 b 6 0 8 a 6 4 d a 3 c 8 f 5 3 5 f 8 e a 1 7 3 d 3 2 6 d a 6 1 9 4 9 0 2 e 8 c
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g z i p - 1 . 1 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 2 d 0 a 6 0 f 2 c 3 8 4 e 3 b 9 e 2 b e d 2 2 1 2 8 6 7 c 8 5 3 3 3 5 4 5 e 5 1 e e 0 f 5 8 3 a 3 3 9 1 4 e 4 8 8 e 4 3 c 2 6 5 e d 0 0 1 7 c d 4 4 3 0 a 6 e 3 d a f d c a 9 9 c 0 4 1 4 b 3 7 5 6 a 4 b 9 c c 9 2 a 6 f 0 4 d 5 5 6 6 e f f 8 b 6 8 d e f 7 5
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / b a s h - 4 . 4 . 0 2 3 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 1 c f 2 a 0 7 0 2 2 1 1 3 0 1 0 e 0 0 e 1 5 0 e 7 0 0 4 7 3 2 0 1 3 a 7 9 3 d 4 9 e 7 a 6 a c 7 c 2 b e 2 7 a 0 b 2 c 0 c e 3 3 6 6 1 5 0 5 8 4 b 9 9 7 4 e 3 0 d f 0 4 2 f 8 8 7 6 a 8 4 d 6 a 7 7 c 1 a 4 6 f 0 6 0 7 e 3 8 e b e 1 8 f 8 a 2 5 f 5 1 c 3 2 d
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / a u t o c o n f - 2 . 6 9 - 5 - a n y . p k g . t a r . x z "
S H A 5 1 2 6 6 b 9 c 9 7 b d 3 d 1 d f e 2 a 2 a b 5 7 6 2 3 5 b 6 b 8 c 2 0 4 a 9 e 4 c 0 9 9 b a 1 4 c f 5 d 0 1 3 9 e 5 6 4 b b a 1 e 7 3 5 e 3 b 1 0 8 3 3 5 4 b 4 c a c 8 c 6 c 4 2 2 3 3 c b d d 5 e 1 e 2 7 7 e 3 2 c a d f e 2 4 0 1 7 b 9 4 d 2 f b d e b 5 6 1 7
D E P S m 4
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / d i f f u t i l s - 3 . 7 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 0 c 3 9 8 3 7 a 2 6 b 2 1 1 1 b b 6 3 1 0 c d f e 0 b c 1 4 6 5 6 e 3 d 5 7 4 5 6 a d 8 0 2 3 f 5 9 c 9 3 8 6 6 3 4 a 8 f 1 f 2 3 6 9 1 5 c 7 9 a 5 7 3 4 8 b 6 4 c 5 0 8 8 9 7 c 7 3 e d 8 8 d 8 a b c e 2 b 9 a c 5 1 2 a 4 2 7 e 9 a 3 9 5 6 9 3 9 f 2 0 4 0
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / b i n u t i l s - 2 . 3 4 - 4 - x 8 6 _ 6 4 . p k g . t a r . z s t "
S H A 5 1 2 5 2 7 1 2 8 8 d 1 1 4 8 9 8 7 9 0 8 2 b c 1 f 2 2 9 8 b b 8 b e d b c f c f 6 e e 1 9 f 8 a 9 b 3 b 5 5 2 b 6 a 4 3 9 5 5 4 3 d 9 3 8 5 b b 8 3 3 e 3 c 3 2 b 1 5 6 0 b f f 1 b 4 1 1 d 2 b e 5 0 3 e 2 c 1 2 a 7 2 0 1 b f 3 7 b 8 5 c f a c c 5 f 5 b a b a 3
D E P S l i b i c o n v l i b i n t l
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b t o o l - 2 . 4 . 6 - 9 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 b 3 0 9 7 9 9 e 5 a 9 d 2 4 8 e f 6 6 e a f 1 1 a 0 b d 2 1 b f 4 e 8 b 9 b d 5 c 6 7 7 c 6 2 7 e c 8 3 f a 7 6 0 c e 9 f 0 b 5 4 d d f 1 b 6 2 c b b 4 3 6 e 6 4 1 f b b d e 7 1 e 3 b 6 1 c b 7 1 f f 5 4 1 d 8 6 6 f 8 c a 7 7 1 7 a 3 a 0 d b e b 0 0 e b f
D E P S g r e p s e d c o r e u t i l s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / c o r e u t i l s - 8 . 3 2 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 1 a 2 a e 4 f 2 9 6 9 5 4 4 2 1 c e 3 6 f 7 6 4 b 9 b 1 c 7 7 c a 7 2 f c 8 5 8 3 c 4 6 0 6 0 b 8 1 7 6 7 7 d 0 a d 6 a d c 7 d 7 e 3 c 2 b b e 1 a e 0 1 7 9 a f d 1 1 6 a 3 d 6 2 f 2 8 e 5 9 e a e 2 f 7 c 8 4 c 1 c 8 f f b 7 d 2 2 d 2 f 2 b 4 0 c 0 c d c
D E P S l i b i c o n v l i b i n t l g m p
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g r e p - 3 . 0 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 c 7 8 4 d 5 f 8 a 9 2 9 a e 2 5 1 f 2 f f a c c f 7 a b 0 b 3 9 3 6 a e 9 f 0 1 2 0 4 1 e 8 f 0 7 4 8 2 6 d d 6 0 7 7 a d 0 a 8 5 9 a b b a 1 9 f e a d e 1 e 7 1 b 3 2 8 9 c c 6 4 0 6 2 6 d f e 8 2 7 a f e 9 1 c 2 7 2 b 3 8 a 1 8 0 8 f 2 2 8 f 2 f d d 0 0
D E P S l i b i c o n v l i b i n t l l i b p c r e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / s e d - 4 . 8 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 b 6 e 7 e d 0 a f 9 e 0 4 a b a 4 9 9 2 e e 2 6 d 8 6 1 6 f 7 a c 6 7 5 c 8 1 3 7 b b 2 8 5 5 8 c 0 4 9 d 5 0 7 0 9 a f b 5 7 1 b 3 3 6 9 5 c e 2 1 d 0 1 e 5 b 7 f e 8 e 1 8 8 c 0 0 8 d d 2 e 8 c b a f c 7 2 a 7 e 2 a 9 1 9 c 2 d 6 7 8 5 0 6 0 9 5 1 3 2 b
D E P S l i b i n t l
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b p c r e - 8 . 4 4 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 e 9 e 5 6 3 8 6 f c 5 c c a 0 f 3 c 3 6 c e e 2 1 e d a 9 1 3 0 0 d 9 a 1 3 a 9 6 2 e c 2 f 5 2 e e e a 0 0 f 1 3 1 9 1 5 d a e a 1 c f e b 0 e 1 b 3 0 7 0 4 b f 3 c c 4 3 5 7 d 9 4 1 d 3 5 6 e 0 d 7 2 1 9 2 b a b 3 0 0 6 c 2 5 4 8 e 1 8 c d 9 6 d a d 7 7
D E P S g c c - l i b s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / m 4 - 1 . 4 . 1 8 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 0 6 1 e 9 2 4 3 c 1 e 0 1 3 a a 0 9 3 5 4 6 e 3 8 7 2 9 8 4 a d 4 7 b 7 f c 9 d 6 4 d 4 c 3 9 d c c e 6 2 e 7 5 0 e d 6 3 2 6 4 5 d f 0 0 b e 3 f e 3 8 2 a 2 f 5 5 f 3 b f 6 2 3 d d 0 d 6 4 9 e 2 0 9 2 b e 2 3 e 8 f 2 2 f 9 2 1 f 5 8 2 e 4 1 8 9 3 e 3 6 a
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / a u t o m a k e - w r a p p e r - 1 1 - 1 - a n y . p k g . t a r . x z "
S H A 5 1 2 0 f c f c 8 0 c 3 1 f d 0 b d a 5 a 4 6 c 5 5 e 9 1 0 0 a 8 6 d 2 f c 7 8 8 a 9 2 c 7 e 2 c a 4 f d 2 8 1 e 5 5 1 3 7 5 c 6 2 e b 5 b 9 c c 9 a d 9 3 3 8 b b 4 4 a 8 1 5 b f 0 b 1 d 1 b 6 0 b 8 8 2 c 8 e 6 8 c a 3 e a 5 2 9 b 4 4 2 f 2 d 0 3 d 1 d 3 e 1 f
D E P S g a w k
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g a w k - 5 . 1 . 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 4 e 2 b e 7 4 7 b 1 8 4 f 2 7 9 4 5 d f 6 f b 3 7 d 5 2 d 5 6 f d 8 1 1 7 d 2 f e 4 b 2 8 9 3 7 0 b c d b 5 b 1 5 a 4 c f 9 0 c b e a e a 9 8 c f 9 e 6 4 b c b f a 2 c 1 3 d b 5 0 d 8 b d 1 4 c b d 7 1 9 c 5 f 3 1 b 4 2 0 8 4 2 d a 9 0 3 0 0 6 d b c 9 5 9
D E P S l i b i n t l l i b r e a d l i n e m p f r
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / m p f r - 4 . 1 . 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . z s t "
S H A 5 1 2 d 6 4 f a 6 0 e 1 8 8 1 2 4 5 9 1 d 4 1 f c 0 9 7 d 7 e b 5 1 d 7 e a 4 9 4 0 b a c 0 5 c d c f 5 e a f d e 9 5 1 e d 1 e a a 1 7 4 4 6 8 f 5 e d e 0 3 e 6 1 1 0 6 e 1 6 3 3 e 3 4 2 8 9 6 4 b 3 4 c 9 6 d e 7 6 3 2 1 e d 8 8 5 3 b 3 9 8 f b e 8 c 4 d 0 7 2
D E P S g m p g c c - l i b s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g m p - 6 . 2 . 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 1 3 8 9 a 4 4 3 e 7 7 5 b b 2 5 5 d 9 0 5 6 6 5 d d 5 7 7 b e f 7 e d 7 1 d 5 1 a 8 c 2 4 d 1 1 8 0 9 7 f 8 1 1 9 c 0 8 c 4 d f e 6 7 5 0 5 e 8 8 d d d 1 e 9 a 3 7 6 4 d d 1 d 5 0 e d 8 b 8 4 f a 3 4 a b e f a 7 9 7 d 2 5 7 e 9 0 5 8 6 f 0 c b f 5 4 d e 8
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b r e a d l i n e - 8 . 0 . 0 0 4 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 4 2 7 6 0 b d d e d c c c 8 d 9 3 5 0 7 c 1 e 3 a 7 a 8 1 5 9 5 d c 6 3 9 2 b 5 e 4 3 1 9 d 2 4 a 8 5 2 7 5 e b 0 4 c 3 0 e b 7 9 0 7 8 e 4 2 4 7 e b 2 c d d 0 0 f f 3 8 8 4 d 9 3 2 6 3 9 1 3 0 c 8 9 b f 1 b 5 5 9 3 1 0 a 1 7 f a 4 8 5 8 0 6 2 4 9 1 f 9 7
D E P S n c u r s e s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / n c u r s e s - 6 . 2 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 d 4 d c 5 6 6 d 3 d b d 3 2 e 7 6 4 6 e 3 2 8 c b 3 5 0 6 8 9 e d e 7 e a a 7 0 0 8 c 8 e d 9 7 1 0 7 2 f 8 8 6 9 a 2 9 8 6 f e 3 9 3 5 e 7 d f 1 7 0 0 8 5 1 b 5 2 7 1 6 a f 7 e f 2 0 c 4 9 f 9 e 6 6 2 8 d 3 1 6 3 a 5 e 9 2 0 8 a 8 8 7 2 b 5 0 1 4 e a e a
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / a u t o m a k e 1 . 1 6 - 1 . 1 6 . 2 - 1 - a n y . p k g . t a r . z s t "
S H A 5 1 2 5 6 8 d 1 2 5 0 a 3 1 a 5 3 4 5 2 e 0 2 9 d 1 c 2 3 6 d a 6 6 d 6 7 f f f a 7 8 6 a 8 7 1 3 1 2 8 0 2 7 d 3 3 a 6 a 9 4 0 8 c d a 6 e 4 9 3 e 9 c 1 5 5 5 a 8 1 6 e f e e 6 2 4 5 b 0 5 a 1 e f 8 f 9 c e 3 4 8 2 c 3 9 d e 7 1 3 5 6 c 2 e 9 8 3 d 9 2 6 b f 7
D E P S p e r l
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / a u t o m a k e 1 . 1 5 - 1 . 1 5 . 1 - 1 - a n y . p k g . t a r . x z "
S H A 5 1 2 d 5 b b 2 4 5 a b 1 b b 6 b 5 7 c 4 0 e f 9 7 7 5 5 b f b 0 9 1 9 d c c e b 0 e c c c 3 3 e 8 4 8 8 0 9 9 2 2 b f 6 b 0 3 2 f 9 e 4 e b 3 6 d 8 9 a e d f 4 1 5 4 2 0 5 1 2 7 7 d 9 2 2 3 8 b d 4 8 a 7 4 1 1 5 8 6 7 d b 0 b b c 1 e 1 d b 1 c 9 7 5 c c 7 2 c
D E P S p e r l
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / p e r l - 5 . 3 2 . 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . z s t "
S H A 5 1 2 8 a c c 6 c 4 9 0 1 b d 2 e 2 4 f a f 1 9 5 1 0 8 4 d 7 0 0 2 9 8 4 7 f 0 5 e 8 7 0 8 2 6 e 0 7 b 8 d 9 a 5 d 9 0 1 4 4 f 4 a a 0 a b 6 e 5 6 8 e 7 7 c 2 8 c 3 6 6 5 0 f 0 1 6 e e 7 5 c e 7 8 b 0 3 5 6 c 7 5 6 7 3 b 2 1 2 c 9 9 2 4 0 1 f 7 f 1 5 4 3 d d 8
D E P S l i b c r y p t
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b c r y p t - 2 . 1 - 2 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 5 9 a 1 3 f 7 9 f 5 6 0 9 3 4 f 8 8 0 d 6 8 2 0 9 a 5 8 a 3 c 3 9 e e 4 a 1 d 2 4 5 0 0 0 3 5 b d e 9 0 d 7 a 6 f 6 a b 0 d 4 f 7 2 f e 1 4 e d e a 6 f 1 9 a 8 e b 5 4 d 4 d 5 3 b 0 b 6 a d 4 5 8 9 b 3 8 8 f 1 5 2 1 a 0 7 a b 2 4 a 0 f 8 3 0 7 6 1 9 c a b
D E P S g c c - l i b s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / p k g - c o n f i g - 0 . 2 9 . 2 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 f 1 d 7 0 f 0 b 4 e b c f e b 3 f a 2 1 5 6 a 7 a 4 f 7 b 0 b 4 0 4 7 9 5 8 5 3 e 0 5 3 6 1 d e 1 4 0 5 4 d c 6 6 5 8 a 6 1 5 4 9 1 5 b b 9 8 2 6 2 6 c b f e 7 6 b e f 0 8 2 8 3 2 5 f 9 9 3 f 3 0 d a 6 8 1 7 3 6 1 c a 8 d 7 e a 4 4 0 a 4 0 0 2 3 f a 8 6 4
D E P S l i b i c o n v
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / m a k e - 4 . 3 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 7 3 0 6 d e c 7 8 5 9 e d c 2 7 d 7 0 a 2 4 a b 4 b 3 9 6 7 2 8 4 8 1 4 8 4 a 4 2 6 c 5 a a 2 f 7 e 9 f e d 2 6 3 5 b 3 b 2 5 5 4 8 b 0 5 b 7 d 3 7 a 1 6 1 a 8 6 a 8 e d a a 5 9 2 2 9 4 8 b e e 8 c 9 9 b 1 e 8 a 0 7 8 6 0 6 e 6 9 c a 4 8 a 4 3 3 f e 3 2 1
D E P S l i b i n t l m s y s 2 - r u n t i m e
)
msys_package (
2020-09-04 22:11:45 +08:00
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g e t t e x t - 0 . 1 9 . 8 . 1 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 c 8 c 4 2 d 0 8 4 c 2 9 7 7 4 6 5 4 8 9 6 3 f 7 e c 7 a 7 d f 4 6 2 4 1 8 8 6 f 3 e 6 3 7 e 7 7 9 8 1 1 e e 4 a 8 f e e 6 0 5 8 f 8 9 2 0 8 2 b b 2 6 5 8 f 6 7 7 7 c b f f b a 2 d e 4 b c d f d 6 8 e 8 4 6 b a 6 3 c 6 a 6 5 5 2 c 9 e f b 0 c 8 c 1 d e 5 0
D E P S l i b i n t l l i b g e t t e x t p o l i b a s p r i n t f
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b g e t t e x t p o - 0 . 1 9 . 8 . 1 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 4 8 0 b 7 8 2 a 7 9 b 0 c e 7 1 e d 9 9 3 9 a e 3 a 6 8 2 1 f c 2 f 5 a 6 3 3 5 8 7 3 3 9 6 5 c 6 2 c e e 0 2 7 d 0 e 6 c 8 8 e 2 5 5 d f 1 d 6 2 3 7 9 e e 4 7 f 5 a 7 f 8 f f e 1 6 3 e 5 5 4 e 3 1 8 d b a 2 2 c 6 7 d c 6 7 4 6 9 b 1 0 a a 3 2 4 8 e d f 7
D E P S g c c - l i b s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b a s p r i n t f - 0 . 1 9 . 8 . 1 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 a 2 e 8 0 2 7 b 9 b b e e 2 0 f 8 c f 6 0 8 5 1 1 3 0 c a 2 a f 4 3 6 6 4 1 b 1 f b 6 6 0 5 4 f 8 d e b a 1 1 8 d a 7 e b e c b 1 c d 1 8 8 2 2 4 d c f 0 8 e 4 c 5 b 7 c d e 8 5 b 4 1 2 e f a b 0 5 8 a f e f 2 3 5 8 e 8 4 3 c 9 d e 8 e b 1 2 8 c a 4 4 8 c
D E P S g c c - l i b s
)
msys_package (
2020-09-01 13:36:25 +08:00
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b i n t l - 0 . 1 9 . 8 . 1 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 4 e 5 4 c 2 5 2 b 8 2 8 c 8 6 2 f 3 7 6 d 8 f 5 a 2 4 1 0 e e 6 2 3 a 4 3 d 7 0 c b b 0 7 d 0 b 8 a c 2 0 c 2 5 0 9 6 f 5 9 f b 3 a e 8 d c d 0 1 1 d 1 7 9 2 b e c 7 6 f 0 b 0 b 9 4 1 1 d 0 e 1 8 4 e e 2 3 7 0 7 9 9 5 7 6 1 d c 5 0 e b 7 6 f 9 f c 6 b 9 2
D E P S l i b i c o n v
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / l i b i c o n v - 1 . 1 6 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 6 f 9 b 7 7 8 d 4 4 9 4 1 0 2 7 3 a 5 0 c d d 1 a f 7 3 7 c d c b 8 8 9 0 a 5 5 3 6 d 7 8 2 1 1 4 7 7 e e d 7 3 8 2 3 4 0 2 5 3 c 7 a a d f b 0 4 9 7 7 f 1 0 3 8 a e 4 f 4 c e f 5 a 6 4 1 f 1 a c f d a 2 6 f d 0 6 3 2 3 d 0 b 1 9 6 a 3 e 6 d a 7 f d 4 2 5
D E P S g c c - l i b s
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / g c c - l i b s - 9 . 3 . 0 - 1 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 2 8 1 6 a f b f 4 5 a a 0 f f 4 7 f 9 4 a 6 2 3 a d 0 8 3 d 9 4 2 1 b c a 5 2 8 4 d c 5 5 6 8 3 c 2 f 1 b c 0 9 e a 0 e a d f e 7 2 0 a f b 7 5 a a f e f 6 0 c 2 f f 6 3 8 4 d 0 5 1 c 4 f b e 2 a 7 4 4 b b 1 6 a 2 0 a c f 3 4 c 0 4 d c 5 9 b 1 7 c 3 d 8 c
D E P S m s y s 2 - r u n t i m e
)
msys_package (
U R L " h t t p s : / / r e p o . m s y s 2 . o r g / m s y s / x 8 6 _ 6 4 / m s y s 2 - r u n t i m e - 3 . 1 . 6 - 3 - x 8 6 _ 6 4 . p k g . t a r . x z "
S H A 5 1 2 f 0 9 4 a 7 f 4 9 2 6 1 9 5 e f 7 b a 0 1 5 f 0 c 5 c 5 6 5 8 7 b 1 f a a 9 4 d 8 5 5 3 0 f 0 7 a a a a 5 5 5 7 a 1 4 9 4 c 3 b d 7 5 2 5 7 d 4 6 8 7 c 8 4 0 1 c b f 1 3 2 8 d 2 3 e 5 5 8 6 a 9 2 b 0 5 f 0 a 8 7 2 c a e b b 1 a 7 e 9 4 1 a 0 7 8 2 9 7 7 6
)
2018-02-24 16:00:51 +08:00
2020-09-01 13:36:25 +08:00
if ( PACKAGES )
message ( FATAL_ERROR "Unknown packages were required for vcpkg_acquire_msys(${_am_PACKAGES}): ${PACKAGES}\nThis can be resolved by explicitly passing URL/SHA pairs to DIRECT_PACKAGES." )
2018-02-24 16:00:51 +08:00
endif ( )
2020-09-01 13:36:25 +08:00
string ( SHA512 TOTAL_HASH "${TOTAL_HASH}" )
string ( SUBSTRING "${TOTAL_HASH}" 0 16 TOTAL_HASH )
set ( PATH_TO_ROOT ${ DOWNLOADS } /tools/msys2/ ${ TOTAL_HASH } )
if ( NOT EXISTS "${PATH_TO_ROOT}" )
file ( REMOVE_RECURSE ${ PATH_TO_ROOT } .tmp )
file ( MAKE_DIRECTORY ${ PATH_TO_ROOT } .tmp/tmp )
set ( I 0 )
foreach ( ARCHIVE IN LISTS ARCHIVES )
vcpkg_execute_required_process (
A L L O W _ I N _ D O W N L O A D _ M O D E
C O M M A N D $ { C M A K E _ C O M M A N D } - E t a r x z f $ { A R C H I V E }
L O G N A M E m s y s - $ { T A R G E T _ T R I P L E T } - $ { I }
W O R K I N G _ D I R E C T O R Y $ { P A T H _ T O _ R O O T } . t m p
)
math ( EXPR I "${I} + 1" )
endforeach ( )
file ( RENAME ${ PATH_TO_ROOT } .tmp ${ PATH_TO_ROOT } )
endif ( )
message ( STATUS "Using msys root at ${DOWNLOADS}/tools/msys2/${TOTAL_HASH}" )
2017-03-02 23:29:00 +08:00
set ( ${ PATH_TO_ROOT_OUT } ${ PATH_TO_ROOT } PARENT_SCOPE )
2017-04-24 20:19:26 +08:00
endfunction ( )