2019-02-26 17:20:07 -05:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO richgel999/miniz
|
2023-01-24 09:45:37 +01:00
|
|
|
REF 3.0.2
|
|
|
|
SHA512 426054403121f84a2ac365f7545b35fb217b41061aebaffce483568d3d374d453ab87987c599a85f1f745e0ec7144a3181ed9b100f354e2823f165ba286b0611
|
2019-02-26 17:20:07 -05:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-27 08:36:06 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DINSTALL_PROJECT=ON
|
2024-08-06 17:25:07 -04:00
|
|
|
-DCMAKE_POLICY_DEFAULT_CMP0057=NEW
|
2019-02-26 17:20:07 -05:00
|
|
|
)
|
|
|
|
|
2021-10-27 08:36:06 +02:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs(BUILD_PATHS "${CURRENT_PACKAGES_DIR}/bin/*.dll")
|
2019-02-26 17:20:07 -05:00
|
|
|
|
2021-10-27 08:36:06 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/miniz)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-02-26 17:20:07 -05:00
|
|
|
|
2021-10-27 08:36:06 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|