2020-09-10 03:47:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Esri/lerc
|
2024-03-08 14:49:57 +08:00
|
|
|
REF "js_v${VERSION}"
|
|
|
|
SHA512 061558d3b29e2d0968d1169ac422795faa6e70dd3425945194c1c87f4522422e186878b0235a5fc42f037c47c54964bf070b7644f8d652f33dc19f692a6ba0af
|
2020-09-10 03:47:16 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2024-02-09 14:41:50 +08:00
|
|
|
create_package.patch
|
|
|
|
cxx-linkage-pkgconfig.patch
|
2024-03-08 14:49:57 +08:00
|
|
|
fix-climits-include.patch
|
2020-09-10 03:47:16 +08:00
|
|
|
)
|
|
|
|
|
2022-05-11 02:37:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-10 03:47:16 +08:00
|
|
|
)
|
2022-05-11 02:37:35 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lerc)
|
2022-09-21 02:37:29 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/Lerc_c_api.h" "defined(LERC_STATIC)" "1")
|
|
|
|
endif()
|
2020-09-10 03:47:16 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2022-05-11 02:37:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|