[poselib] add new port (#41468)

This commit is contained in:
Francisco Facioni 2024-10-16 05:58:22 +02:00 committed by GitHub
parent f0570dc411
commit 80ba3e5f55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,25 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PoseLib/PoseLib
REF "v${VERSION}"
SHA512 adc43c4f0fd8544d2c7ef05538696a8ae614837f5e90c31b8b9c8f4b5a11eb773229c22444e01482de697a0f5b3137d4a63a24ba9fcc72b366a347252d3c16b1
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DMARCH_NATIVE=OFF
-DWITH_BENCHMARK=OFF
-DPYTHON_PACKAGE=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PoseLib)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

18
ports/poselib/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "poselib",
"version": "2.0.4",
"description": "Minimal solvers for calibrated camera pose estimation",
"homepage": "https://github.com/PoseLib/PoseLib",
"license": "BSD-3-Clause",
"dependencies": [
"eigen3",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -7124,6 +7124,10 @@
"baseline": "239",
"port-version": 0
},
"poselib": {
"baseline": "2.0.4",
"port-version": 0
},
"ppconsul": {
"baseline": "0.5",
"port-version": 5

9
versions/p-/poselib.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "adf31292beb503a1ff13f6ecffd2697c0f56bbe2",
"version": "2.0.4",
"port-version": 0
}
]
}