[minizip] Bump version to include minizip/crypt.h

This commit is contained in:
Robert Schumacher 2017-08-08 13:59:01 -07:00
parent 2d75e5a673
commit 7b33a26c89
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: minizip
Version: 1.2.11
Version: 1.2.11-1
Description:
Build-Depends: bzip2, zlib

View File

@ -24,5 +24,11 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/minizip)
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/minizip/*.h")
foreach(HEADER ${HEADERS})
file(READ "${HEADER}" _contents)
string(REPLACE "#ifdef HAVE_BZIP2" "#if 1" _contents "${_contents}")
file(WRITE "${HEADER}" "${_contents}")
endforeach()
file(INSTALL ${SOURCE_PATH}/contrib/minizip/MiniZip64_info.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/minizip RENAME copyright)