aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/librsync
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/librsync
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/librsync')
-rw-r--r--vcpkg/ports/librsync/portfile.cmake40
-rw-r--r--vcpkg/ports/librsync/vcpkg.json13
2 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/librsync/portfile.cmake b/vcpkg/ports/librsync/portfile.cmake
new file mode 100644
index 0000000..663e47b
--- /dev/null
+++ b/vcpkg/ports/librsync/portfile.cmake
@@ -0,0 +1,40 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO librsync/librsync
+ REF "v${VERSION}"
+ SHA512 ac01413b875e774db9fec3888210a4b9a5f3d32c081f1ed5f2cf9dc29cfae6ecedf6eac42062631e6dcf188853313fce4520430549768a0f68993419b07e58d9
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_RDIFF:BOOL=OFF
+ -DENABLE_COMPRESSION:BOOL=OFF
+ -DENABLE_TRACE:BOOL=OFF
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/rsync.dll")
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/bin/rsync.dll")
+endif()
+if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll")
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/rsync.dll")
+endif()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/librsync_export.h"
+ "# ifdef LIBRSYNC_STATIC_DEFINE"
+ "# if 1 /* LIBRSYNC_STATIC_DEFINE */"
+ )
+endif()
+
+vcpkg_copy_pdbs()
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/librsync/vcpkg.json b/vcpkg/ports/librsync/vcpkg.json
new file mode 100644
index 0000000..0287ac3
--- /dev/null
+++ b/vcpkg/ports/librsync/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "librsync",
+ "version-semver": "2.3.4",
+ "description": "librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications.",
+ "homepage": "http://librsync.sourcefrog.net/",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}