2021-03-29 19:14:39 +02:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Cisco-Talos/clamav-devel
|
2024-02-06 13:45:43 -07:00
|
|
|
REF clamav-0.103.11
|
|
|
|
SHA512 2d614b5006fe526d7bb43dfc691329f2de2fa2dc6cfc63fb93ba556ee26a9f87369bf072f59db0fed178c44413d68838b45ea572885c8d0a0bee81a410d5e055
|
2021-05-20 05:05:43 +08:00
|
|
|
FILE_DISAMBIGUATOR 1
|
2021-03-29 19:14:39 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
"build.patch"
|
|
|
|
"cmakefiles.patch"
|
|
|
|
"curl.patch"
|
2021-04-10 00:45:56 +08:00
|
|
|
"mspack.patch"
|
2024-02-06 13:45:43 -07:00
|
|
|
"isnt.patch"
|
2021-03-29 19:14:39 +02:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-03-29 19:14:39 +02:00
|
|
|
OPTIONS
|
|
|
|
-DENABLE_LIBCLAMAV_ONLY=ON
|
|
|
|
-DENABLE_DOCS=OFF
|
|
|
|
-DENABLE_SHARED_LIB=ON
|
|
|
|
-DENABLE_STATIC_LIB=OFF
|
2021-04-10 00:45:56 +08:00
|
|
|
-DENABLE_EXTERNAL_MSPACK=ON
|
2021-03-29 19:14:39 +02:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-29 19:14:39 +02:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-03-29 19:14:39 +02:00
|
|
|
|
|
|
|
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()
|