2023-02-02 09:10:42 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiaozhuai/imageinfo
|
2024-08-09 04:26:21 +08:00
|
|
|
REF d010e59f25867a0ee159143f8bf116f071d993b1 # committed on 2024-08-05
|
|
|
|
SHA512 a30c241608d44aa296f75debc988f7a8875eafe45ea925ca9d276975512cd1de9413b95c6421d1e37a71cb3e1c65f2bed101ffdf0e83ef3a883c8443a8bffb8d
|
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}")
|