From 90d017005d05cd9f4a369e0af4b15ea8c98e73ea Mon Sep 17 00:00:00 2001 From: Ramadan Date: Thu, 10 Oct 2019 15:23:29 +0200 Subject: Add Dbow3 Library --- ports/dbow3/CONTROL | 4 ++++ ports/dbow3/portfile.cmake | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ports/dbow3/CONTROL create mode 100644 ports/dbow3/portfile.cmake diff --git a/ports/dbow3/CONTROL b/ports/dbow3/CONTROL new file mode 100644 index 000000000..831ea9f0f --- /dev/null +++ b/ports/dbow3/CONTROL @@ -0,0 +1,4 @@ +Source: dbow3 +Version: 1.0.0 +Description: DBoW3 is an improved version of the DBow2 library, an open source C++ library for indexing and converting images into a bag-of-word representation. +Build-Depends: opencv3[contrib] \ No newline at end of file diff --git a/ports/dbow3/portfile.cmake b/ports/dbow3/portfile.cmake new file mode 100644 index 000000000..b4d4f0458 --- /dev/null +++ b/ports/dbow3/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions) + +#the port produces some empty dlls when building shared libraries, since some components do not export anything, breaking the internal build itself +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO RamadanAhmed/DBow3 + REF master + SHA512 280c76c7c547908fd133f118e1d17fe0faed87b70f61df3cd01964bd7ef33bef10dfc79d6cab8aaaf2edbfc063de0b5ad3fd80e116eab0300f1cbab86d0e38b2 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DUSE_SIMD=ON + -DUSE_OPENCV_CONTRIB=ON + -DBUILD_SHARED_LIBS=ON + -DBUILD_EXAMPLES=OFF + -DBUILD_TESTS=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH cmake/DBow3) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(INSTALL + ${SOURCE_PATH}/LICENSE.txt + DESTINATION ${CURRENT_PACKAGES_DIR}/share/DBow3 RENAME copyright) +vcpkg_copy_pdbs() \ No newline at end of file -- cgit v1.2.3 From a9407450bd223af45d5fb763f14f14ef312892aa Mon Sep 17 00:00:00 2001 From: Ramadan Date: Thu, 10 Oct 2019 16:21:37 +0200 Subject: Fix: Remove -DBUILD_SHARED_LIBS=ON --- ports/dbow3/portfile.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/ports/dbow3/portfile.cmake b/ports/dbow3/portfile.cmake index b4d4f0458..a68373223 100644 --- a/ports/dbow3/portfile.cmake +++ b/ports/dbow3/portfile.cmake @@ -14,7 +14,6 @@ vcpkg_configure_cmake( OPTIONS -DUSE_SIMD=ON -DUSE_OPENCV_CONTRIB=ON - -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF ) -- cgit v1.2.3