[libpng[apng]] Add msys installation to use awk (#13838)

* libpng[apng] - add msys installation to use awk, which fixes the apng prefix problem

* [libpng] Update CONTROL version

* Fix incorrect args to vcpkg_acquire_msys

Co-authored-by: wangli28 <wangli28@beyondsoft.com>
This commit is contained in:
Albert Huang 2020-10-13 16:48:57 -04:00 committed by GitHub
parent ee736e7656
commit c633ef256f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Source: libpng
Version: 1.6.37
Port-Version: 11
Port-Version: 12
Build-Depends: zlib
Homepage: https://github.com/glennrp/libpng
Description: libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files.

View File

@ -3,6 +3,11 @@ set(LIBPNG_VER 1.6.37)
# Download the apng patch
set(LIBPNG_APNG_OPTION )
if ("apng" IN_LIST FEATURES)
# Get (g)awk installed
vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
set(AWK_EXE_PATH "${MSYS_ROOT}/usr/bin")
vcpkg_add_to_path("${AWK_EXE_PATH}")
set(LIBPNG_APG_PATCH_NAME libpng-${LIBPNG_VER}-apng.patch)
set(LIBPNG_APG_PATCH_PATH ${CURRENT_BUILDTREES_DIR}/src/${LIBPNG_APG_PATCH_NAME})
if (NOT EXISTS ${LIBPNG_APG_PATCH_PATH})