aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimone Gasparini <simone.gasparini@gmail.com>2021-03-11 21:21:52 +0100
committerGitHub <noreply@github.com>2021-03-11 12:21:52 -0800
commit939c215cc6f06ec396c57dacf327064f1ca26e2e (patch)
treefcbe29114152bdad8ae92ffd8ab558677fff4b4c
parent71c7aa72b42a7d34fa3d7e8715ae1ac325aa32f6 (diff)
downloadvcpkg-939c215cc6f06ec396c57dacf327064f1ca26e2e.tar.gz
vcpkg-939c215cc6f06ec396c57dacf327064f1ca26e2e.zip
[popsift] add new port v0.9 (#10979)
* [ports] add popsift * [popsift] homepage and limitations * [popsift] test debug * [popsift] test -fpic off for static * [popsift] update ci.baseline * [popsift] testing winfixes * [popsift] missing dependencies for apps * [popsift] update portfile * [popsift] cleaning * [popsift] using vcpkg_find_cuda and v1.0.0-rc2 * [popsift] using CUDA_TOOLKIT_ROOT_DIR * [popsift] rolling back to v0.9 * [popsift] update versions/baseline * [popsift] baseline x64-static-md fail * [popsift] missing popsift.json * [popsift] remove ci.baseline.txt Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
-rw-r--r--ports/popsift/CONTROL11
-rw-r--r--ports/popsift/portfile.cmake41
-rw-r--r--scripts/ci.baseline.txt2
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/p-/popsift.json9
5 files changed, 66 insertions, 1 deletions
diff --git a/ports/popsift/CONTROL b/ports/popsift/CONTROL
new file mode 100644
index 000000000..038e8fb7e
--- /dev/null
+++ b/ports/popsift/CONTROL
@@ -0,0 +1,11 @@
+Source: popsift
+Version: 0.9
+Port-Version: 0
+Description: PopSift is an implementation of the SIFT algorithm in CUDA.
+Build-Depends: cuda
+Homepage: https://github.com/alicevision/popsift
+Supports: !(uwp|arm|arm64|android|x86)
+
+Feature: apps
+Description: Application programs for popsift (detection and matching)
+Build-Depends: boost-algorithm, boost-program-options, boost-filesystem, boost-system \ No newline at end of file
diff --git a/ports/popsift/portfile.cmake b/ports/popsift/portfile.cmake
new file mode 100644
index 000000000..f611efa0f
--- /dev/null
+++ b/ports/popsift/portfile.cmake
@@ -0,0 +1,41 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO alicevision/popsift
+ REF v0.9
+ SHA512 56789520872203eea86e07e8210e00c0b67d85486af16df9d620b1aff10f8d9ef5d910cf1dda6c68af7ca2ed11658ab5414ac79117b543f91a7d8d6a96a17ce0
+ HEAD_REF develop
+)
+
+include(${CURRENT_INSTALLED_DIR}/share/vcpkg_find_cuda/vcpkg_find_cuda.cmake)
+vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
+
+message(STATUS "CUDA_TOOLKIT_ROOT ${CUDA_TOOLKIT_ROOT}")
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ apps PopSift_BUILD_EXAMPLES
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS ${FEATURE_OPTIONS} -DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PopSift)
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
+
+ # move the bin direcory to tools
+ if ("apps" IN_LIST FEATURES)
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin" ${CURRENT_PACKAGES_DIR}/tools/popsift)
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
+# file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin" ${CURRENT_PACKAGES_DIR}/tools/popsift/debug)
+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/popsift)
+ endif()
+
+file(INSTALL ${SOURCE_PATH}/COPYING.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/popsift RENAME copyright) \ No newline at end of file
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index 615b9a1ff..a9ab38084 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1254,6 +1254,7 @@ pmdk:x64-windows-static=fail
pmdk:x86-windows=fail
pngwriter:arm-uwp=fail
pngwriter:x64-uwp=fail
+popsift:x64-windows-static-md=fail
portable-snippets:arm-uwp=fail
pqp:arm-uwp=fail
pqp:x64-uwp=fail
@@ -1801,4 +1802,3 @@ yato:x64-windows-static-md=fail
zyre:x64-windows-static-md=fail
workflow:x64-uwp=fail
workflow:arm-uwp=fail
-
diff --git a/versions/baseline.json b/versions/baseline.json
index 71c0c055b..f6a930ebe 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4704,6 +4704,10 @@
"baseline": "20.12.1",
"port-version": 4
},
+ "popsift": {
+ "baseline": "0.9",
+ "port-version": 0
+ },
"portable-snippets": {
"baseline": "2019-09-20",
"port-version": 0
diff --git a/versions/p-/popsift.json b/versions/p-/popsift.json
new file mode 100644
index 000000000..cf040e4c3
--- /dev/null
+++ b/versions/p-/popsift.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "807871ff30d3f2e5f40fbe3ff72dde0254b30c8d",
+ "version-string": "0.9",
+ "port-version": 0
+ }
+ ]
+}