aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/liberasurecode
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/liberasurecode
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/liberasurecode')
-rw-r--r--vcpkg/ports/liberasurecode/fix-build.patch38
-rw-r--r--vcpkg/ports/liberasurecode/portfile.cmake23
-rw-r--r--vcpkg/ports/liberasurecode/vcpkg.json11
3 files changed, 72 insertions, 0 deletions
diff --git a/vcpkg/ports/liberasurecode/fix-build.patch b/vcpkg/ports/liberasurecode/fix-build.patch
new file mode 100644
index 0000000..0677673
--- /dev/null
+++ b/vcpkg/ports/liberasurecode/fix-build.patch
@@ -0,0 +1,38 @@
+diff --git a/Makefile.am b/Makefile.am
+index 6135f2a..e68974f 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -8,7 +8,7 @@ INCLUDE = -I$(abs_top_builddir)/include \
+ -I$(abs_top_builddir)/include/xor_codes
+
+ AM_CPPFLAGS = $(CPPFLAGS) $(INCLUDE)
+-AM_CPPFLAGS += -Werror -Wall
++AM_CPPFLAGS += -Wall
+
+ AM_CFLAGS = -fPIC $(AM_CPPFLAGS) @GCOV_FLAGS@ -L/usr/local/lib
+
+diff --git a/erasurecode.pc.in b/erasurecode.pc.in
+index 148c382..5a8578f 100644
+--- a/erasurecode.pc.in
++++ b/erasurecode.pc.in
+@@ -11,5 +11,6 @@ Version: @LIBERASURECODE_VERSION@
+ Requires:
+ Conflicts:
+ Libs: -L${libdir} -lerasurecode -ldl
+-Libs.private: @ERASURECODE_STATIC_LIBS@ -lz
++Libs.private: -lXorcode -lnullcode -lerasurecode_rs_vand
++Requires.private: zlib
+ Cflags: -I${includedir}/ -I${includedir}/liberasurecode
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 693809e..097954d 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -32,7 +32,7 @@ liberasurecode_la_SOURCES = \
+ backends/shss/shss.c \
+ backends/phazrio/libphazr.c
+
+-liberasurecode_la_CPPFLAGS = -Werror @GCOV_FLAGS@
++liberasurecode_la_CPPFLAGS = @GCOV_FLAGS@
+ liberasurecode_la_LIBADD = \
+ builtin/null_code/libnullcode.la \
+ builtin/xor_codes/libXorcode.la \
diff --git a/vcpkg/ports/liberasurecode/portfile.cmake b/vcpkg/ports/liberasurecode/portfile.cmake
new file mode 100644
index 0000000..072afb3
--- /dev/null
+++ b/vcpkg/ports/liberasurecode/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO openstack/liberasurecode
+ REF "${VERSION}"
+ SHA512 9815e159e6b9aa44e47fb0ec1eec04321c48e160ec617511720569e445d8085848124e7385ab2be54615e0c2f4a37a44ae5d2de460a7d6ea36782dfe08c2e53a
+ HEAD_REF master
+ PATCHES
+ fix-build.patch
+)
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS
+ "--disable-werror"
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/liberasurecode/vcpkg.json b/vcpkg/ports/liberasurecode/vcpkg.json
new file mode 100644
index 0000000..a8b8c57
--- /dev/null
+++ b/vcpkg/ports/liberasurecode/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "liberasurecode",
+ "version": "1.6.4",
+ "description": "Erasure Code API library written in C with pluggable Erasure Code backends. Mirror of code maintained at opendev.org.",
+ "homepage": "https://github.com/openstack/liberasurecode",
+ "license": "BSD-2-Clause",
+ "supports": "!android & !windows",
+ "dependencies": [
+ "zlib"
+ ]
+}