2019-09-27 05:31:55 +08:00
|
|
|
vcpkg_buildpath_length_warning(37)
|
2021-11-06 07:12:19 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2019-03-27 17:40:19 +08:00
|
|
|
|
2017-11-15 23:36:04 +08:00
|
|
|
vcpkg_from_github(
|
2021-11-06 07:12:19 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/avro
|
|
|
|
REF 4e1fefca493029ace961b7ef8889a3722458565a #release-1.11.0
|
|
|
|
SHA512 6e787983d68bc6ecffd14ca585917f695bc1ae554de9146a436d342f32321c3e7878cdfa32989742e682ac12a6eb914b3e3b515ca3164f386c0281c8b50b53ad
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2020-03-19 14:06:04 +08:00
|
|
|
avro.patch # Private vcpkg build fixes
|
2017-11-15 23:36:04 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:12:19 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/lang/c"
|
2018-03-12 14:41:51 +08:00
|
|
|
OPTIONS
|
2021-11-06 07:12:19 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_DOCS=OFF
|
2017-11-15 23:36:04 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:12:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-15 23:36:04 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-06 07:12:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-11-26 17:03:05 +08:00
|
|
|
# the files are broken and there is no way to fix it because the snappy dependency has no pkgconfig file
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
2017-11-15 23:36:04 +08:00
|
|
|
|
2021-11-06 07:12:19 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES avroappend avrocat AUTO_CLEAN)
|
|
|
|
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES avropipe avromod AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/lang/c/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|