aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Warren <s.warren@garvan.org.au>2019-02-21 09:58:33 +1100
committerCodiferous <44823842+Codiferous@users.noreply.github.com>2019-02-20 14:58:33 -0800
commit45c48151d524133cdf1b4a3e5c1543b2b4eb30e2 (patch)
treec0581bb8577afcaf94d1eeb48408a4b562401afc
parentea720bbf595d48ea610cd32d2064fb0ecf98aa78 (diff)
downloadvcpkg-45c48151d524133cdf1b4a3e5c1543b2b4eb30e2.tar.gz
vcpkg-45c48151d524133cdf1b4a3e5c1543b2b4eb30e2.zip
[libics] Add libics (#5398)
-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