diff options
Diffstat (limited to 'vcpkg/ports/liburcu')
| -rw-r--r-- | vcpkg/ports/liburcu/fix-assert-include.patch | 12 | ||||
| -rw-r--r-- | vcpkg/ports/liburcu/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/liburcu/vcpkg.json | 14 |
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/liburcu/fix-assert-include.patch b/vcpkg/ports/liburcu/fix-assert-include.patch new file mode 100644 index 0000000..caaf522 --- /dev/null +++ b/vcpkg/ports/liburcu/fix-assert-include.patch @@ -0,0 +1,12 @@ +diff --git a/src/urcu-bp.c b/src/urcu-bp.c +index 8e9afd8..b1edc5c 100644 +--- a/src/urcu-bp.c ++++ b/src/urcu-bp.c +@@ -21,6 +21,7 @@ + #include <unistd.h> + #include <stdbool.h> + #include <sys/mman.h> ++#include <assert.h> + + #include <urcu/annotate.h> + #include <urcu/assert.h> diff --git a/vcpkg/ports/liburcu/portfile.cmake b/vcpkg/ports/liburcu/portfile.cmake new file mode 100644 index 0000000..11da2df --- /dev/null +++ b/vcpkg/ports/liburcu/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO urcu/userspace-rcu
+ REF "v${VERSION}"
+ SHA512 838a52fee5a566928766bf897c22be152f351f14928258ab42cdff5f48b621428872e3eb290ef16b10b92cb10fc3e767b35aa534f84893c9a61e471c8ecceb62
+ HEAD_REF master
+ PATCHES
+ fix-assert-include.patch
+)
+
+vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTORECONF
+)
+
+vcpkg_make_install()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(
+ FILE_LIST
+ "${SOURCE_PATH}/LICENSE.md"
+ "${SOURCE_PATH}/LICENSES/LGPL-2.1-or-later.txt"
+ "${SOURCE_PATH}/LICENSES/LicenseRef-Boehm-GC.txt"
+ "${SOURCE_PATH}/LICENSES/MIT.txt"
+)
diff --git a/vcpkg/ports/liburcu/vcpkg.json b/vcpkg/ports/liburcu/vcpkg.json new file mode 100644 index 0000000..cf5a2e8 --- /dev/null +++ b/vcpkg/ports/liburcu/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "liburcu", + "version": "0.15.2", + "description": "liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data synchronization library provides read-side access which scales linearly with the number of cores.", + "homepage": "https://liburcu.org/", + "license": null, + "supports": "!windows", + "dependencies": [ + { + "name": "vcpkg-make", + "host": true + } + ] +} |