diff --git a/ports/bxzstr/portfile.cmake b/ports/bxzstr/portfile.cmake new file mode 100644 index 0000000000..fd198f39aa --- /dev/null +++ b/ports/bxzstr/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tmaklin/bxzstr + REF "v${VERSION}" + SHA512 e357eb99b007031a1b15b20077883ebb20b294fda97d4aa354ded04c8d0b398fdeae9e1e97747caf55699a8feadf8c10eb807a9c6a66837a0816002df34fb7a1 + HEAD_REF master +) + +file(INSTALL + "${SOURCE_PATH}/include/bxzstr.hpp" + "${SOURCE_PATH}/include/bz_stream_wrapper.hpp" + "${SOURCE_PATH}/include/compression_types.hpp" + "${SOURCE_PATH}/include/config.hpp" + "${SOURCE_PATH}/include/lzma_stream_wrapper.hpp" + "${SOURCE_PATH}/include/stream_wrapper.hpp" + "${SOURCE_PATH}/include/strict_fstream.hpp" + "${SOURCE_PATH}/include/z_stream_wrapper.hpp" + "${SOURCE_PATH}/include/zstd_stream_wrapper.hpp" + DESTINATION "${CURRENT_PACKAGES_DIR}/include/bxzstr") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/bxzstr/usage b/ports/bxzstr/usage new file mode 100644 index 0000000000..35adcfe18f --- /dev/null +++ b/ports/bxzstr/usage @@ -0,0 +1,4 @@ +The package bxzstr is header only and can be used from CMake via: + + find_path(BXZSTR_INCLUDE_DIRS "bxzstr.hpp" PATH_SUFFIXES "include/bxzstr") + target_include_directories(main PRIVATE ${BXZSTR_INCLUDE_DIRS}) diff --git a/ports/bxzstr/vcpkg.json b/ports/bxzstr/vcpkg.json new file mode 100644 index 0000000000..1af0474bf3 --- /dev/null +++ b/ports/bxzstr/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "bxzstr", + "version": "1.2.0", + "description": "A C++ header-only ZLib/libBZ2/libLZMA/Zstandard wrapper.", + "homepage": "https://github.com/tmaklin/bxzstr", + "license": "MPL-2.0", + "dependencies": [ + "bzip2", + "liblzma", + "zlib", + "zstd" + ] +} diff --git a/versions/b-/bxzstr.json b/versions/b-/bxzstr.json new file mode 100644 index 0000000000..9e992baf41 --- /dev/null +++ b/versions/b-/bxzstr.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ad9511ac67f069a83b89c91a8fb0c995a6aca196", + "version": "1.2.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 39e6ce806e..8e9ea101b9 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1288,6 +1288,10 @@ "baseline": "2019-05-08", "port-version": 3 }, + "bxzstr": { + "baseline": "1.2.0", + "port-version": 0 + }, "byte-lite": { "baseline": "0.3.0", "port-version": 0