2019-07-07 05:52:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2022-04-28 09:59:45 +08:00
|
|
|
URLS "https://archive.apache.org/dist/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6.tar.gz"
|
|
|
|
FILENAME "zookeeper-3.5.6.tar.gz"
|
|
|
|
SHA512 7f45817cbbc42aec5a7817fa2ae99656128e666dc58ace23d86bcfc5ca0dc49e418d1a7d1f082ad80ccb916f9f1b490167d16f836886af1a56fbcf720ad3b9d0
|
2019-07-07 05:52:53 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2019-10-08 01:35:13 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2019-07-07 05:52:53 +08:00
|
|
|
PATCHES
|
|
|
|
cmake.patch
|
|
|
|
win32.patch
|
|
|
|
)
|
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
sync WANT_SYNCAPI
|
|
|
|
)
|
2019-07-07 05:52:53 +08:00
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/zookeeper-client/zookeeper-client-c"
|
2019-07-07 05:52:53 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
|
|
|
-DWANT_CPPUNIT=OFF
|
2022-04-28 09:59:45 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-07-07 05:52:53 +08:00
|
|
|
)
|
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-07 05:52:53 +08:00
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2019-07-07 05:52:53 +08:00
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-07 05:52:53 +08:00
|
|
|
|
2022-04-28 09:59:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/zookeeper-client/zookeeper-client-c/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2019-07-07 05:52:53 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|