* [imageinfo] Add new port

* update version database

* Add usage

* Add new line

* update version

---------

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
xiaozhuai, Weihang Ding 2023-02-02 09:10:42 +08:00 коммит произвёл GitHub
Родитель c35b8168fc
Коммит a548ef52e5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 58 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xiaozhuai/imageinfo
REF 724301f7ef5e29410e78cd900ae25f9fa2e3080a # committed on 2023-01-31
SHA512 b9ba5d2ec5698b9eee4eb07e0dbb50d0f361e730b6d468ac6e4c90b29375f6468f45214573673de5f9388d532794f922a556153d34cba5d6ccec854c20d34506
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DIMAGEINFO_BUILD_TOOL=OFF
-DIMAGEINFO_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/imageinfo)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/imageinfo/usage Normal file
Просмотреть файл

@ -0,0 +1,4 @@
imageinfo provides CMake targets:
find_package(imageinfo CONFIG REQUIRED)
target_link_libraries(main PRIVATE imageinfo::imageinfo)

Просмотреть файл

@ -0,0 +1,17 @@
{
"name": "imageinfo",
"version-date": "2023-01-31",
"description": "Cross platform super fast single header c++ library to get image size and format without loading/decoding. Support avif, bmp, cur, dds, gif, hdr (pic), heic (heif), icns, ico, jp2, jpeg (jpg), jpx, ktx, png, psd, qoi, tga, tiff (tif), webp ...",
"homepage": "https://github.com/xiaozhuai/imageinfo",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

Просмотреть файл

@ -3140,6 +3140,10 @@
"baseline": "2022-10-11",
"port-version": 0
},
"imageinfo": {
"baseline": "2023-01-31",
"port-version": 0
},
"imath": {
"baseline": "3.1.5",
"port-version": 0

Просмотреть файл

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "66f45650934f8561d3779ca4a29d808b8d1cea98",
"version-date": "2023-01-31",
"port-version": 0
}
]
}