[libcbor] New port (#16884)

* [libcbor] Initial commit

* [libcbor] Add metadata

* Changes made by vcpkg.exe format-manifest --all

* Changes made by vcpkg.exe x-add-version libcbor --overwrite-version
This commit is contained in:
Sönke Schau 2021-03-29 18:25:14 +02:00 committed by GitHub
parent 8a8eb71941
commit d4c34fd271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Distributed under the OSI-approved BSD 3-Clause License.
find_path(LIBCBOR_INCLUDE_DIR NAMES cbor.h)
find_library(LIBCBOR_LIBRARY cbor)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCBOR DEFAULT_MSG LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR)
if(LIBCBOR_FOUND)
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
endif()
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)

View File

@ -0,0 +1,29 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PJK/libcbor
REF v0.8.0
SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DWITH_TESTS=OFF
-DWITH_EXAMPLES=OFF
-DVCPKG_VERBOSE=ON
)
vcpkg_build_cmake()
vcpkg_install_cmake()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
# Add Cmake Packagefile
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

7
ports/libcbor/vcpkg.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "libcbor",
"version-string": "0.8.0",
"description": "libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format",
"homepage": "https://github.com/PJK/libcbor",
"supports": "(x86 | x64) & windows"
}

View File

@ -2932,6 +2932,10 @@
"baseline": "1.16.1",
"port-version": 2
},
"libcbor": {
"baseline": "0.8.0",
"port-version": 0
},
"libcds": {
"baseline": "2.3.3",
"port-version": 0

9
versions/l-/libcbor.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ef3f79d600e1f00656e522591c6ff7beed247e3a",
"version-string": "0.8.0",
"port-version": 0
}
]
}