2023-02-02 09:10:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiaozhuai/imageinfo
|
2024-07-16 01:33:07 +08:00
|
|
|
REF 649721b6040625393da5c91647b397ddaaafe4a2 # committed on 2024-07-14
|
|
|
|
SHA512 7b7196a487762b752d3b6a3f04d2769c90886ea412fb73a379b89903428f7df4b03595e75b27a0f64d91124f953fba5ec8415fe3d374978685b927d95ca0a605
|
2023-02-02 09:10:42 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
2024-01-23 03:00:22 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools IMAGEINFO_BUILD_TOOLS
|
|
|
|
)
|
|
|
|
|
2023-02-02 09:10:42 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2024-01-23 03:00:22 +08:00
|
|
|
-DIMAGEINFO_BUILD_INSTALL=ON
|
2023-02-02 09:10:42 +08:00
|
|
|
-DIMAGEINFO_BUILD_TESTS=OFF
|
2024-01-23 03:00:22 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2023-02-02 09:10:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-12-28 15:59:51 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2024-01-23 03:00:22 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES imageinfo AUTO_CLEAN)
|
|
|
|
endif()
|
2023-02-02 09:10:42 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
2023-12-28 15:59:51 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-02-02 09:10:42 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|