aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasjuang <jasjuang@gmail.com>2017-08-20 11:02:30 -0700
committerjasjuang <jasjuang@gmail.com>2017-08-20 11:02:30 -0700
commitf11ee61fd6b93b311899f72a5e0b647fbdc12d54 (patch)
treea277bccab3a49f121c3aef13080ddcfe80a84ef4
parentd5659ea88d6bfa656f82d22f2cd186fe2ebb3b27 (diff)
downloadvcpkg-f11ee61fd6b93b311899f72a5e0b647fbdc12d54.tar.gz
vcpkg-f11ee61fd6b93b311899f72a5e0b647fbdc12d54.zip
new port: sophus
-rw-r--r--ports/sophus/CONTROL4
-rw-r--r--ports/sophus/portfile.cmake26
2 files changed, 30 insertions, 0 deletions
diff --git a/ports/sophus/CONTROL b/ports/sophus/CONTROL
new file mode 100644
index 000000000..24c8a482b
--- /dev/null
+++ b/ports/sophus/CONTROL
@@ -0,0 +1,4 @@
+Source: sophus
+Version: 1.0.0
+Build-Depends:eigen3, ceres
+Description: Lie group library for C++
diff --git a/ports/sophus/portfile.cmake b/ports/sophus/portfile.cmake
new file mode 100644
index 000000000..dba573c54
--- /dev/null
+++ b/ports/sophus/portfile.cmake
@@ -0,0 +1,26 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO strasdat/Sophus
+ REF v1.0.0
+ SHA512 569634a8be9237d2240cf30c01e2677ece75d55f1196030f1228baca62fa22460e8ceb2a63bd46afdf7f02d8eb79c59d6ed666228b852da78590de897b278fab
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/Sophus")
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
+
+# Put the license file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/Sophus/)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/Sophus/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/Sophus/copyright)