mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 18:53:04 +08:00
[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:
parent
ee736e7656
commit
c633ef256f
@ -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.
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user