Enclosed diff brings zstd to the latest version (1.4.0). Overview on changes can be found at https://github.com/facebook/zstd/releases.
Major of SHARED_LIBS has been bumped as symbols have been removed. - make test runs successfully; - build tested its consumers; - run tested in combination with borgbackup, and libarchive. OK? Index: Makefile =================================================================== RCS file: /cvs/ports/archivers/zstd/Makefile,v retrieving revision 1.23 diff -u -p -r1.23 Makefile --- Makefile 16 Apr 2019 03:52:47 -0000 1.23 +++ Makefile 17 Apr 2019 06:32:21 -0000 @@ -2,10 +2,10 @@ COMMENT = zstandard fast real-time compression algorithm -V = 1.3.8 +V = 1.4.0 DISTNAME = zstd-${V} -SHARED_LIBS = zstd 2.0 # 1.3.8 +SHARED_LIBS = zstd 3.0 # 1.4.0 CATEGORIES = archivers Index: distinfo =================================================================== RCS file: /cvs/ports/archivers/zstd/distinfo,v retrieving revision 1.14 diff -u -p -r1.14 distinfo --- distinfo 28 Dec 2018 19:28:37 -0000 1.14 +++ distinfo 17 Apr 2019 06:32:21 -0000 @@ -1,2 +1,2 @@ -SHA256 (zstd-1.3.8.tar.gz) = KT+gBN+s++kLQmYMR0kg/ycJPj+2yZ97duYIOyHW1I4= -SIZE (zstd-1.3.8.tar.gz) = 1862954 +SHA256 (zstd-1.4.0.tar.gz) = fzI/DgwYSIdI89my1DU/AOkE6izNA3LqBNf3eqEVZVc= +SIZE (zstd-1.4.0.tar.gz) = 1886068 Index: patches/patch-lib_Makefile =================================================================== RCS file: /cvs/ports/archivers/zstd/patches/patch-lib_Makefile,v retrieving revision 1.4 diff -u -p -r1.4 patch-lib_Makefile --- patches/patch-lib_Makefile 28 Dec 2018 19:28:37 -0000 1.4 +++ patches/patch-lib_Makefile 17 Apr 2019 06:32:21 -0000 @@ -3,7 +3,7 @@ $OpenBSD: patch-lib_Makefile,v 1.4 2018/ Index: lib/Makefile --- lib/Makefile.orig +++ lib/Makefile -@@ -125,10 +125,10 @@ ifeq ($(shell uname), Darwin) +@@ -130,10 +130,10 @@ ifeq ($(shell uname), Darwin) SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT) SONAME_FLAGS = -install_name $(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER) else @@ -16,7 +16,7 @@ Index: lib/Makefile endif -@@ -141,7 +141,7 @@ all: lib +@@ -146,7 +146,7 @@ all: lib libzstd.a: ARFLAGS = rcs libzstd.a: $(ZSTD_OBJ) @echo compiling static library @@ -25,7 +25,7 @@ Index: lib/Makefile libzstd.a-mt: CPPFLAGS += -DZSTD_MULTITHREAD libzstd.a-mt: libzstd.a -@@ -160,7 +160,7 @@ LIBZSTD = libzstd.$(SHARED_EXT_VER) +@@ -164,7 +164,7 @@ LIBZSTD = libzstd.$(SHARED_EXT_VER) $(LIBZSTD): LDFLAGS += -shared -fPIC -fvisibility=hidden $(LIBZSTD): $(ZSTD_FILES) @echo compiling dynamic library $(LIBVER) @@ -34,7 +34,7 @@ Index: lib/Makefile @echo creating versioned links @ln -sf $@ libzstd.$(SHARED_EXT_MAJOR) @ln -sf $@ libzstd.$(SHARED_EXT) -@@ -256,8 +256,6 @@ install-shared: libzstd +@@ -260,8 +260,6 @@ install-shared: libzstd @echo Installing shared library @$(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/ @$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)