From 45c48151d524133cdf1b4a3e5c1543b2b4eb30e2 Mon Sep 17 00:00:00 2001 From: Sean Warren Date: Thu, 21 Feb 2019 09:58:33 +1100 Subject: [PATCH] [libics] Add libics (#5398) --- ports/libics/CONTROL | 3 +++ ports/libics/cmakelists.patch | 12 ++++++++++++ ports/libics/portfile.cmake | 23 +++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 ports/libics/CONTROL create mode 100644 ports/libics/cmakelists.patch create mode 100644 ports/libics/portfile.cmake diff --git a/ports/libics/CONTROL b/ports/libics/CONTROL new file mode 100644 index 0000000000..5f98c96144 --- /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 0000000000..9e7fa498f2 --- /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 0000000000..9bcf997ed3 --- /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