2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-01-30 02:53:31 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO VirusTotal/yara
|
2022-09-14 07:40:10 +08:00
|
|
|
REF ba94b4f8ebb6d56786d14f6a0f7529b32d7c216f #v4.2.3
|
|
|
|
SHA512 34bbe80c0f108691c7dd36fe56a2f866fc90424417a14df80781670f8150662a6160fecc4b697c6ff7eca3f98d78cdcb91f38e7f2a6542814b739869662d6608
|
2021-07-23 05:23:35 +08:00
|
|
|
HEAD_REF master
|
2018-01-30 02:53:31 +08:00
|
|
|
)
|
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-01-30 02:53:31 +08:00
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-24 02:53:14 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
-DDISABLE_INSTALL_TOOLS=ON
|
2018-01-30 02:53:31 +08:00
|
|
|
)
|
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-30 02:53:31 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-04-02 05:31:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|