aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-06-14 16:05:02 -0700
committerPhil Christensen <philc@microsoft.com>2019-06-14 16:05:02 -0700
commit23f11284c1e0234695e46ecb11f6ff365e720252 (patch)
tree789ba120007929eb160e8dd2b8b03cf8749b809f
parentaac6c06af49a91c1d847c838d2059983080dc6d5 (diff)
downloadvcpkg-23f11284c1e0234695e46ecb11f6ff365e720252.tar.gz
vcpkg-23f11284c1e0234695e46ecb11f6ff365e720252.zip
[OpenIGTLInk] Add new port (#6769)
-rw-r--r--ports/openigtlink/CONTROL3
-rw-r--r--ports/openigtlink/portfile.cmake30
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/openigtlink/CONTROL b/ports/openigtlink/CONTROL
new file mode 100644
index 000000000..488c4061b
--- /dev/null
+++ b/ports/openigtlink/CONTROL
@@ -0,0 +1,3 @@
+Source: openigtlink
+Version: 3.0
+Description: OpenIGTLink is an open-source network communication interface specifically designed for image-guided interventions.
diff --git a/ports/openigtlink/portfile.cmake b/ports/openigtlink/portfile.cmake
new file mode 100644
index 000000000..a5a240fae
--- /dev/null
+++ b/ports/openigtlink/portfile.cmake
@@ -0,0 +1,30 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO openigtlink/OpenIGTLink
+ REF v3.0
+ SHA512 3f62ef1c4ca349f653712cecd43af8b5afce642cc3950256498905999861d68143ba3003f6b0899f5f5c3c5c755eb282c63488ac59b4793b3622a47571452739
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/igtl/cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file