aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dbow2
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dbow2
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dbow2')
-rw-r--r--vcpkg/ports/dbow2/portfile.cmake25
-rw-r--r--vcpkg/ports/dbow2/vcpkg.json18
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/dbow2/portfile.cmake b/vcpkg/ports/dbow2/portfile.cmake
new file mode 100644
index 0000000..5e6661e
--- /dev/null
+++ b/vcpkg/ports/dbow2/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO dorian3d/DBoW2
+ REF 4d08e9fc751fac9063874d85a43c1ccdcda8b401
+ SHA512 0a4ad8506c731395cb23d96d0e8afe4131576af88468723b9496cdbc95a031089ecdeb61dbb7205cb3a7599acb60a39887fa9852e7d7a690b8152a1bd26d9bd0
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS -DBUILD_Demo=OFF
+)
+
+vcpkg_cmake_install()
+
+# Move CMake files to the right place
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/DBoW2)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/DBoW2/DBoW2Config.cmake")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/dbow2/vcpkg.json b/vcpkg/ports/dbow2/vcpkg.json
new file mode 100644
index 0000000..d71ae20
--- /dev/null
+++ b/vcpkg/ports/dbow2/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "dbow2",
+ "version-date": "2019-08-05",
+ "port-version": 3,
+ "description": "DBoW2 is an improved version of the DBow library, an open source C++ library for indexing and converting images into a bag-of-word representation.",
+ "homepage": "https://github.com/dorian3d/DBoW2",
+ "dependencies": [
+ "opencv",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}