diff options
Diffstat (limited to 'vcpkg/ports/zfp')
| -rw-r--r-- | vcpkg/ports/zfp/portfile.cmake | 42 | ||||
| -rw-r--r-- | vcpkg/ports/zfp/vcpkg.json | 37 |
2 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/zfp/portfile.cmake b/vcpkg/ports/zfp/portfile.cmake new file mode 100644 index 0000000..e390627 --- /dev/null +++ b/vcpkg/ports/zfp/portfile.cmake @@ -0,0 +1,42 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO LLNL/zfp
+ REF "${VERSION}"
+ SHA512 5bbd98ed2f98e75c654afa863cab3023abb2eeb8f203f9049c75d5dbdf4b364cfb5c8378e10e6aaeaf13242315ad4949b06619810a67b3adaed095b7e8a48d5a
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ all BUILD_ALL
+ cfp BUILD_CFP
+ utility BUILD_UTILITIES
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${FEATURE_OPTIONS}
+ -DBUILD_TESTING=OFF
+ -DBUILD_ALL=OFF
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+# Rename problematic root include "bitstream.h"; conflicts with x265's private headers
+vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/zfp.h "\"bitstream.h\"" "\"zfp/bitstream.h\"" IGNORE_UNCHANGED)
+
+if("utility" IN_LIST FEATURES)
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/zfp")
+ vcpkg_copy_tools(TOOL_NAMES zfp AUTO_CLEAN)
+ else()
+ vcpkg_copy_tools(TOOL_NAMES zfpcmd AUTO_CLEAN)
+ endif()
+endif()
+
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/zfp/vcpkg.json b/vcpkg/ports/zfp/vcpkg.json new file mode 100644 index 0000000..b04090b --- /dev/null +++ b/vcpkg/ports/zfp/vcpkg.json @@ -0,0 +1,37 @@ +{ + "name": "zfp", + "version": "1.0.1", + "description": "Zfp is an open source C/C++ library for compressed numerical arrays that support high throughput read and write random access. zfp also supports streaming compression of integer and floating-point data, e.g., for applications that read and write large data sets to and from disk. zfp is primarily written in C and C++ but also includes Python and Fortran bindings.", + "homepage": "https://github.com/LLNL/zfp", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "all": { + "description": "Obsolete. This feature is left for compatibility", + "dependencies": [ + { + "name": "zfp", + "features": [ + "cfp", + "utility" + ] + } + ] + }, + "cfp": { + "description": "cfp support for cfp" + }, + "utility": { + "description": "Build utility" + } + } +} |