diff --git a/ports/zxc/portfile.cmake b/ports/zxc/portfile.cmake new file mode 100644 index 0000000000..1a2df12604 --- /dev/null +++ b/ports/zxc/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO hellobertrand/zxc + REF v${VERSION} + SHA512 012cc905268b1eaf04adff5615e796b2d130a5c4d6b7cb356195b0e94a34a3e7ad360d56bb8debdfdb8001a0321d77b5b499611463ec21047ca74f25ae022459 + HEAD_REF main +) + +# Remove vendored rapidhash to use the rapidhash port instead +file(REMOVE "${SOURCE_PATH}/src/lib/vendors/rapidhash.h") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DZXC_NATIVE_ARCH=OFF + -DZXC_ENABLE_LTO=OFF + -DZXC_BUILD_CLI=OFF + -DZXC_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/zxc) +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") \ No newline at end of file diff --git a/ports/zxc/vcpkg.json b/ports/zxc/vcpkg.json new file mode 100644 index 0000000000..204cdbc640 --- /dev/null +++ b/ports/zxc/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "zxc", + "version": "0.7.3", + "description": "High-performance asymmetric lossless compression library", + "homepage": "https://github.com/hellobertrand/zxc", + "license": "BSD-3-Clause AND MIT", + "dependencies": [ + "rapidhash", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 44ad4cbd61..f6a375c093 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -11068,6 +11068,10 @@ "baseline": "0.1.2", "port-version": 0 }, + "zxc": { + "baseline": "0.7.3", + "port-version": 0 + }, "zycore": { "baseline": "1.5.2", "port-version": 0 diff --git a/versions/z-/zxc.json b/versions/z-/zxc.json new file mode 100644 index 0000000000..bcd3ccf047 --- /dev/null +++ b/versions/z-/zxc.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a099a90d13c01059b3ad62b6e2df180a2320091f", + "version": "0.7.3", + "port-version": 0 + } + ] +}