aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openigtlink
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/openigtlink')
-rw-r--r--vcpkg/ports/openigtlink/portfile.cmake24
-rw-r--r--vcpkg/ports/openigtlink/vcpkg.json13
2 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/openigtlink/portfile.cmake b/vcpkg/ports/openigtlink/portfile.cmake
new file mode 100644
index 0000000..4dc805c
--- /dev/null
+++ b/vcpkg/ports/openigtlink/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO openigtlink/OpenIGTLink
+ REF v3.0
+ SHA512 3f62ef1c4ca349f653712cecd43af8b5afce642cc3950256498905999861d68143ba3003f6b0899f5f5c3c5c755eb282c63488ac59b4793b3622a47571452739
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ -DOpenIGTLink_INSTALL_PACKAGE_DIR=share/${PORT}
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file
diff --git a/vcpkg/ports/openigtlink/vcpkg.json b/vcpkg/ports/openigtlink/vcpkg.json
new file mode 100644
index 0000000..c517b0e
--- /dev/null
+++ b/vcpkg/ports/openigtlink/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "openigtlink",
+ "version": "3.0",
+ "port-version": 4,
+ "description": "OpenIGTLink is an open-source network communication interface specifically designed for image-guided interventions.",
+ "homepage": "https://github.com/openigtlink/OpenIGTLink",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}