aboutsummaryrefslogtreecommitdiff
path: root/ports/libics
diff options
context:
space:
mode:
authorGriffin Downs <grdowns@microsoft.com>2019-02-27 16:44:17 -0800
committerGriffin Downs <grdowns@microsoft.com>2019-02-27 16:44:17 -0800
commit1908903508bf057ad05d8a344e5bc55477944cb6 (patch)
tree2a23595f1e7d8cc9a6358bfd44a00eb7368d8a1b /ports/libics
parentb0a2ff18c9f2c9131aed131f5bf0d97c0e23da8e (diff)
parent8564602d06d7c4ce236f96a4f0f3ba7c2d769cb0 (diff)
downloadvcpkg-1908903508bf057ad05d8a344e5bc55477944cb6.tar.gz
vcpkg-1908903508bf057ad05d8a344e5bc55477944cb6.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/grdowns/4802
Diffstat (limited to 'ports/libics')
-rw-r--r--ports/libics/CONTROL3
-rw-r--r--ports/libics/cmakelists.patch12
-rw-r--r--ports/libics/portfile.cmake23
3 files changed, 38 insertions, 0 deletions
diff --git a/ports/libics/CONTROL b/ports/libics/CONTROL
new file mode 100644
index 000000000..5f98c9614
--- /dev/null
+++ b/ports/libics/CONTROL
@@ -0,0 +1,3 @@
+Source: libics
+Version: 1.6.2
+Description: Reference library for ICS (Image Cytometry Standard), an open standard for writing images of any dimensionality and data type to file, together with associated information regarding the recording equipment or recorded subject. \ No newline at end of file
diff --git a/ports/libics/cmakelists.patch b/ports/libics/cmakelists.patch
new file mode 100644
index 000000000..9e7fa498f
--- /dev/null
+++ b/ports/libics/cmakelists.patch
@@ -0,0 +1,12 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -86,7 +86,8 @@
+ endif()
+
+ # Install
+-install(TARGETS libics libics_static DESTINATION lib)
++install(TARGETS libics DESTINATION bin)
++install(TARGETS libics_static DESTINATION lib)
+ install(FILES ${HEADERS} DESTINATION include)
+
+ # Unit tests
diff --git a/ports/libics/portfile.cmake b/ports/libics/portfile.cmake
new file mode 100644
index 000000000..9bcf997ed
--- /dev/null
+++ b/ports/libics/portfile.cmake
@@ -0,0 +1,23 @@
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO svi-opensource/libics
+ REF 8d8d2dbe72450cbaf88080b6c0e24a7a4a58009e
+ SHA512 739668b4d51ddb67d50ed1d41bd6965b90b5e4eafc7ec19e2f1d668f48af6e237f6a1872673e3fec5888efe94c2b321295c4de9502aba1f677fc6d0e0399c141
+ HEAD_REF master
+ PATCHES
+ cmakelists.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(COPY ${SOURCE_PATH}/GNU_LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libics)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/libics/GNU_LICENSE ${CURRENT_PACKAGES_DIR}/share/libics/copyright) \ No newline at end of file