mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 00:21:36 +08:00
3975146c8a
* [json-c] update to version 0.17 2023-08-12 * [json-c] update version database * [clamav] update to version 0.103.11 * [clamav] update version db * [clamav] add patch to compile isnt.cpp on windows * [clamav] update version db * [clamav] remove extra port version * [clamav] update version db * fix cmakelists.txt * update version * fix cmakelists.txt * update git-tree * remove fix-cmakelists.patch * update git-tree * format * update git-tree --------- Co-authored-by: Monica <liuyumei01@beyondsoft.com>
41 lines
1.1 KiB
CMake
41 lines
1.1 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Cisco-Talos/clamav-devel
|
|
REF clamav-0.103.11
|
|
SHA512 2d614b5006fe526d7bb43dfc691329f2de2fa2dc6cfc63fb93ba556ee26a9f87369bf072f59db0fed178c44413d68838b45ea572885c8d0a0bee81a410d5e055
|
|
FILE_DISAMBIGUATOR 1
|
|
HEAD_REF master
|
|
PATCHES
|
|
"build.patch"
|
|
"cmakefiles.patch"
|
|
"curl.patch"
|
|
"mspack.patch"
|
|
"isnt.patch"
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DENABLE_LIBCLAMAV_ONLY=ON
|
|
-DENABLE_DOCS=OFF
|
|
-DENABLE_SHARED_LIB=ON
|
|
-DENABLE_STATIC_LIB=OFF
|
|
-DENABLE_EXTERNAL_MSPACK=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# On Linux, clamav will still build and install clamav-config
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
vcpkg_copy_pdbs()
|