head 1.15; access; symbols pkgsrc-2026Q3:1.13.0.18 pkgsrc-2026Q3-base:1.13 pkgsrc-2026Q2:1.13.0.16 pkgsrc-2026Q2-base:1.13 pkgsrc-2026Q1:1.13.0.14 pkgsrc-2026Q1-base:1.13 pkgsrc-2025Q4:1.13.0.12 pkgsrc-2025Q4-base:1.13 pkgsrc-2025Q3:1.13.0.10 pkgsrc-2025Q3-base:1.13 pkgsrc-2025Q2:1.13.0.8 pkgsrc-2025Q2-base:1.13 pkgsrc-2025Q1:1.13.0.6 pkgsrc-2025Q1-base:1.13 pkgsrc-2024Q4:1.13.0.4 pkgsrc-2024Q4-base:1.13 pkgsrc-2024Q3:1.13.0.2 pkgsrc-2024Q3-base:1.13 pkgsrc-2024Q2:1.12.0.4 pkgsrc-2024Q2-base:1.12 pkgsrc-2024Q1:1.12.0.2 pkgsrc-2024Q1-base:1.12 pkgsrc-2023Q4:1.11.0.12 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.10 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.8 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.6 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.4 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.2 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.10.0.26 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.24 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.10.0.22 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.10.0.20 pkgsrc-2021Q3-base:1.10 pkgsrc-2021Q2:1.10.0.18 pkgsrc-2021Q2-base:1.10 pkgsrc-2021Q1:1.10.0.16 pkgsrc-2021Q1-base:1.10 pkgsrc-2020Q4:1.10.0.14 pkgsrc-2020Q4-base:1.10 pkgsrc-2020Q3:1.10.0.12 pkgsrc-2020Q3-base:1.10 pkgsrc-2020Q2:1.10.0.10 pkgsrc-2020Q2-base:1.10 pkgsrc-2020Q1:1.10.0.6 pkgsrc-2020Q1-base:1.10 pkgsrc-2019Q4:1.10.0.8 pkgsrc-2019Q4-base:1.10 pkgsrc-2019Q3:1.10.0.4 pkgsrc-2019Q3-base:1.10 pkgsrc-2019Q2:1.10.0.2 pkgsrc-2019Q2-base:1.10 pkgsrc-2019Q1:1.9.0.6 pkgsrc-2019Q1-base:1.9 pkgsrc-2018Q4:1.9.0.4 pkgsrc-2018Q4-base:1.9 pkgsrc-2018Q3:1.9.0.2 pkgsrc-2018Q3-base:1.9 pkgsrc-2018Q2:1.8.0.2 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.7.0.2 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.6.0.6 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.4 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.5.0.4 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.2 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.3.0.2 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.2.0.12 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.10 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.8 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.6 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.4 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.2 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.1.0.2 pkgsrc-2015Q1-base:1.1; locks; strict; comment @# @; 1.15 date 2026.11.10.12.58.26; author adam; state Exp; branches; next 1.14; commitid EcX9wN78R25nMU2H; 1.14 date 2026.11.09.14.20.58; author wiz; state Exp; branches; next 1.13; commitid f233cu6nZnVCgN2H; 1.13 date 2024.07.23.06.22.37; author adam; state Exp; branches; next 1.12; commitid h9sL8sAFGh1AAViF; 1.12 date 2024.03.17.12.39.50; author nia; state Exp; branches; next 1.11; commitid hfB9JlAEq4t7Nv2F; 1.11 date 2022.08.16.13.02.56; author adam; state Exp; branches; next 1.10; commitid qGQYXoYvAExSw6QD; 1.10 date 2019.04.30.09.17.38; author adam; state Exp; branches; next 1.9; commitid DKZxdFJBTeNxYllB; 1.9 date 2018.09.14.09.48.56; author fhajny; state Exp; branches; next 1.8; commitid HzFPQ1m2gpn7u3SA; 1.8 date 2018.05.10.13.16.27; author adam; state Exp; branches; next 1.7; commitid x3Een0uTtDstIKBA; 1.7 date 2018.01.13.19.00.09; author adam; state Exp; branches; next 1.6; commitid R2F9ISJzFyvonKmA; 1.6 date 2017.08.19.14.54.25; author adam; state Exp; branches; next 1.5; commitid 9ETx0bysxk6hKP3A; 1.5 date 2017.01.05.11.07.55; author wiz; state Exp; branches; next 1.4; commitid KqFnWayY9v22LLAz; 1.4 date 2017.01.04.15.43.51; author fhajny; state Exp; branches; next 1.3; commitid E3hqo6KGRhKpjFAz; 1.3 date 2016.12.07.21.34.58; author fhajny; state Exp; branches; next 1.2; commitid aur1hn7M3QyX86xz; 1.2 date 2015.06.09.12.04.19; author fhajny; state Exp; branches; next 1.1; commitid JXCQR5eXIEMgzKoy; 1.1 date 2015.03.23.22.24.11; author fhajny; state Exp; branches; next ; commitid FM2FogYuxzS1wMey; desc @@ 1.15 log @lz4: updated to 1.11.1 1.11.1 LZ4 v1.11.1 is a point release, whose main purpose is to fix LZ4_resetStreamHC(), an obsolete symbol, on dirty memory. While reset functions are expected to reset valid states, LZ4_resetStreamHC() has been working fine on dirty memory, which made it possible to employ it as an initializer instead. Hence, some (hopefully rare) applications may have developed a dependency on this property. v1.11.0 did not respect this undocumented behavior: on a dirty state, compression at levels >= 10 could result in a write out of bounds. Thus v1.11.1 is released to restore the previous behavior. This is mostly of importance for distributions and package managers, as liblz4 may be paired with older binaries that are no longer updated. LZ4_resetStreamHC() was replaced by LZ4_initStreamHC() in v1.9.0 (2019). Applications still employing this symbol are invited to migrate. This release also restores the (deprecated) unprefixed lz4frame enums, for applications that still need them. They now generate a deprecation warning: once again, actively maintained applications should move to the prefixed names. Build configurations accidentally broken in v1.11.0 work again: make with BUILD_STATIC=no or BUILD_SHARED=no, and MinGW with clang and lld. @ text @$NetBSD: patch-lib_Makefile,v 1.14 2026/11/09 14:20:58 wiz Exp $ Make portable (inc. libtoolize). Unlock install target. Use pkgsrc install scripts. --- lib/Makefile.orig 2026-11-10 05:21:42.000000000 +0000 +++ lib/Makefile @@@@ -34,9 +34,9 @@@@ SED ?= sed # Version numbers -LIBVER_MAJOR_SCRIPT:=`$(SED) -n '/define[[:blank:]][[:blank:]]*LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_MINOR_SCRIPT:=`$(SED) -n '/define[[:blank:]][[:blank:]]*LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_PATCH_SCRIPT:=`$(SED) -n '/define[[:blank:]][[:blank:]]*LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` +LIBVER_MAJOR_SCRIPT:=`awk '$$2=="LZ4_VERSION_MAJOR" {print $$3}' < lz4.h` +LIBVER_MINOR_SCRIPT:=`awk '$$2=="LZ4_VERSION_MINOR" {print $$3}' < lz4.h` +LIBVER_PATCH_SCRIPT:=`awk '$$2=="LZ4_VERSION_RELEASE" {print $$3}' < lz4.h` LIBVER_SCRIPT:= $(LIBVER_MAJOR_SCRIPT).$(LIBVER_MINOR_SCRIPT).$(LIBVER_PATCH_SCRIPT) LIBVER_MAJOR := $(shell echo $(LIBVER_MAJOR_SCRIPT)) LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT)) @@@@ -59,6 +59,7 @@@@ ALLFLAGS = $(MCM_CFLAGS) $(CFLAGS) $(MCM SRCFILES := $(sort $(wildcard *.c)) OBJFILES = $(SRCFILES:.c=.o) +LIBTOOL_OBJS := $(patsubst %.c,%.lo,$(SRCFILES)) include ../build/make/lz4defs.make @@@@ -171,11 +172,18 @@@@ all: lib liblz4.pc all32: MCM_CFLAGS += -m32 all32: all +.SUFFIXES: .lo +.c.lo: + $(LIBTOOL) --mode=compile --tag=CC $(CC) $(MCM_CPPFLAGS) $(CPPFLAGS) $(MCM_CFLAGS) $(CFLAGS) -c $^ -o $@@ + + # multi-threading flags are part of the objects' cache key (last argument) liblz4.a: MCM_CPPFLAGS += $(STATICLIB_MT_FLAGS) liblz4.a: ARFLAGS = rcs ifeq ($(BUILD_STATIC),yes) -$(eval $(call static_library,liblz4.a,$(OBJFILES),,,$(STATICLIB_MT_FLAGS))) +liblz4.a: $(LIBTOOL_OBJS) + @@echo compiling static library + $(AR) rcs $@@ *.o endif ifeq ($(WINBASED),yes) @@@@ -203,12 +211,11 @@@@ endif else # not windows -$(LIBLZ4): MCM_CPPFLAGS += $(DYNLIB_MT_FLAGS) -$(LIBLZ4): MCM_CFLAGS += -fPIC -fvisibility=hidden # only API functions (LZ4LIB_API, LZ4FLIB_API) are exported -$(LIBLZ4): MCM_LDFLAGS += $(SONAME_FLAGS) $(filter -pthread,$(DYNLIB_MT_FLAGS)) -ifeq ($(BUILD_SHARED),yes) -$(eval $(call c_dynamic_library,$(LIBLZ4),$(OBJFILES),,echo "$(LIBLZ4) created $(DYNLIB_MT_MSG)",$(DYNLIB_MT_FLAGS))) -endif +liblz4.la: $(LIBTOOL_OBJS) + ifeq ($(BUILD_SHARED),yes) + @@echo compiling dynamic library $(LIBVER) + $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -rpath $(PREFIX)/lib -version-info $(LIBVER_MAJOR):0 $^ -o $@@ + endif endif @@@@ -222,7 +229,7 @@@@ liblz4.$(SHARED_EXT): liblz4.$(SHARED_EX $(LN_SF) $< $@@ .PHONY: liblz4 -liblz4: $(if $(filter yes,$(BUILD_SHARED)),$(LIBLZ4) liblz4.$(SHARED_EXT_MAJOR) liblz4.$(SHARED_EXT)) +liblz4: liblz4.la else @@@@ -301,13 +308,13 @@@@ install: [ -e $(LIBLZ4) ] || $(MAKE) liblz4 endif $(MAKE) liblz4.pc PC_LIBS_PRIVATE="$(if $(filter yes,$(BUILD_STATIC)),$$($(PC_THREADS_SH)))" - $(MAKE_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/ - $(INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/ + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/ + $(BSD_INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/ @@echo Installing libraries in $(DESTDIR)$(libdir) ifeq ($(BUILD_STATIC),yes) - $(INSTALL_DATA) liblz4.a $(DESTDIR)$(libdir)/liblz4.a - $(INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h - $(INSTALL_DATA) lz4file.h $(DESTDIR)$(includedir)/lz4file.h + $(BSD_INSTALL_LIB) liblz4.a $(DESTDIR)$(libdir)/liblz4.a + $(BSD_INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h + $(BSD_INSTALL_DATA) lz4file.h $(DESTDIR)$(includedir)/lz4file.h endif ifeq ($(BUILD_SHARED),yes) # Traditionally, one installs the DLLs in the bin directory as programs @@@@ -317,15 +324,13 @@@@ install: $(INSTALL_PROGRAM) $(LIBLZ4) $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) $(LIBLZ4_EXP) $(DESTDIR)$(libdir) else - $(INSTALL_PROGRAM) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir) - $(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT_MAJOR) - $(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT) + $(LIBTOOL) --mode install $(BSD_INSTALL_LIB) liblz4.la $(DESTDIR)$(libdir) endif endif @@echo Installing headers in $(DESTDIR)$(includedir) - $(INSTALL_DATA) lz4.h $(DESTDIR)$(includedir)/lz4.h - $(INSTALL_DATA) lz4hc.h $(DESTDIR)$(includedir)/lz4hc.h - $(INSTALL_DATA) lz4frame.h $(DESTDIR)$(includedir)/lz4frame.h + $(BSD_INSTALL_DATA) lz4.h $(DESTDIR)$(includedir)/lz4.h + $(BSD_INSTALL_DATA) lz4hc.h $(DESTDIR)$(includedir)/lz4hc.h + $(BSD_INSTALL_DATA) lz4frame.h $(DESTDIR)$(includedir)/lz4frame.h @@echo lz4 libraries installed .PHONY: uninstall @ 1.14 log @lz4: update to 1.11.0. Note: this includes files for other build systems like cmake or meson; we should consider switching to one of them to avoid our libtoolization patches. v1.11.0 fix : data corruption in valid usage : ring buffer decoding (`LZ4_decoderRingBufferSize()`, since v1.9.0), rare cases of streaming or `destSize` compression, one reported by @@freedom-winds fix : single-thread `lz4` could truncate the decoding of concatenated frames with block checksums fix : multithreaded decompression could write out of bounds after 2^31 frames (since v1.10.0), by @@arshsmith1 fix : `LZ4F_compressBegin_usingDict()` ignored the dictionary with independent blocks fix : some periodic data compressed up to 30x worse at fast levels, and very slowly at level 12, reported by @@martinus fix : invalid arguments (negative sizes, `NULL`, invalid `blockSizeID`, extreme levels) no longer crash nor overflow, by @@arthuz-th, @@jaypatrickhoward, @@louislafosse, @@akashdeshmukh-git, @@rinsuki fix : lz4file reports truncated files and write failures, and accepts files < 19 bytes, by @@axiqia perf : faster decompression on aarch64 and x86-64 (up to +19%, +4% on silesia.tar), `LZ4_FAST_DEC_LOOP` on aarch64 with clang and on riscv64, by @@Nicoshev and @@arpadpanyik-arm perf : faster compression of small blocks at fast levels, with reused states (up to +80%) or dictionaries (up to +35%), partly proposed by @@BiplabRaut perf : faster levels 11 and 12 (+8% to +27%), level 2 compresses ~0.8% better perf : x86 builds avoid the JCC erratum : up to +12% compression and +31% decompression on Intel Skylake-family cpus api : multithreaded lz4frame compression (experimental `LZ4F_preferences_t.nbWorkers`) : output independent of the nb of workers and of the context's history api : random access within frames and lz4 files : `LZ4F_resumeFrame()`, `LZ4F_seek()`, `LZ4F_tell()` (static) api : `LZ4_decompress_safe()` returns distinct error codes : `-1` malformed input, `-2` `dstCapacity` too small, `-3` missing dictionary api : lz4frame compression accepts any `dstCapacity`, and only fails if the output doesn't fit api : removed from headers : functions deprecated since v1.7.x / v1.8.0 (still exported by liblz4), unprefixed lz4frame enums ; `LZ4_resetStream()` and `LZ4_resetStreamHC()` are deprecated api : `LZ4F_compressOptions_t` must be zero-initialized ; reserved fields are scalars (flatten positional initializers) ; `LZ4F_uncompressedUpdate()` deprecated (use `.uncompressed`) api : custom allocators for lz4file (`_advanced()` functions), `LZ4_USER_MEMORY_FUNCTIONS` also for lz4frame and lz4file ; `LZ4F_cctx_size()` and `LZ4F_dctx_size()` by @@felixhandte api : HC states include the buffer of levels 10+ (+64 KB per state) : no allocation during compression cli : multithreaded compression relies on liblz4 : same output with any nb of threads and without multithreading support ; `-T#` within a memory budget (`--memory=#`) ; new `--single-thread` cli : decodes Firefox's mozlz4 files, proposed by @@UnitedMarsupials, and legacy frames with the Linux kernel end marker, requested by @@benjarobin (frame format documentation by @@Artoria2e5) cli : safer file handling : an output identical to the input is refused, a source modified during compression is detected, `--rm` keeps the source after failures, by @@Furan666, @@Nexory and @@immanuwell cli : benchmark (`-b`) measures frames, compressed as `lz4` does with the same options cli : various fixes (`--list`, legacy format, benchmark, `-t -m`, numeric arguments), by @@tansy, @@jmestwa-coder, @@akashdeshmukh-git, @@arshsmith1, @@jlee303 and @@Nexory build: dynamic library multithreaded by default, static library single-threaded ; cmake `lz4` multithreaded build: cmake : exported `lz4::lz4` target by @@dg0yt, CMake 4 support by @@GeorgH93, `CMAKE_POSITION_INDEPENDENT_CODE` by @@ds-sloth build: cmake : as a subproject, the `lz4` program is no longer built by default (`-DLZ4_BUILD_CLI=ON` restores it), by @@crueter build: reproducible static library by @@rpurdie, AIX support by @@shubhamhii, meson fixes by @@grobian, @@bgilbert and @@eli-schwartz, other fixes by @@hotschmoe, @@iwamatsu, @@doraorak, @@JCash and @@brainy port : RISC-V with `Zicclsm` uses unaligned memory accesses, by @@Polaris-911 @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- lib/Makefile.orig 2026-11-04 00:58:16.000000000 +0000 d21 1 a21 1 @@@@ -59,6 +59,7 @@@@ d29 1 a29 1 @@@@ -168,11 +169,18 @@@@ d49 1 a49 1 @@@@ -200,12 +208,11 @@@@ d67 1 a67 1 @@@@ -219,7 +226,7 @@@@ d71 1 a71 1 -liblz4: $(LIBLZ4) liblz4.$(SHARED_EXT_MAJOR) liblz4.$(SHARED_EXT) d76 1 a76 1 @@@@ -298,13 +305,13 @@@@ d95 1 a95 1 @@@@ -314,15 +321,13 @@@@ @ 1.13 log @lz4: updated to 1.10.0 LZ4 v1.10.0 introduces major updates, integrating 600+ commits that significantly enhance its capabilities. This version brings multithreading support to the forefront, harnessing modern multi-core processors to accelerate both compression and decompression processing. It's a good upgrade for users looking to optimize performance in high-throughput environments. @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.12 2024/03/17 12:39:50 nia Exp $ d6 1 a6 1 --- lib/Makefile.orig 2024-07-21 17:29:49.000000000 +0000 d21 1 a21 2 @@@@ -55,6 +55,7 @@@@ CFLAGS = $(DEBUGFLAGS) $(USERCFLAGS) ALLFLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) d24 2 a25 1 +OBJFILES := $(patsubst %.c,%.lo,$(SRCFILES)) d27 1 a27 1 include ../Makefile.inc d29 2 a30 2 @@@@ -97,11 +98,15 @@@@ all: lib liblz4.pc all32: CFLAGS+=-m32 d35 1 a35 1 + $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@@ d38 8 a45 7 CLEAN += liblz4.a -liblz4.a: $(SRCFILES) +liblz4.a: $(OBJFILES) ifeq ($(BUILD_STATIC),yes) # can be disabled on command line @@echo compiling static library - $(COMPILE.c) $^ $(AR) rcs $@@ *.o d48 2 a49 1 @@@@ -128,29 +133,26 @@@@ $(LIBLZ4): $(SRCFILES) liblz4-dll.o d53 9 a61 8 -$(LIBLZ4): $(SRCFILES) +liblz4.la: $(OBJFILES) ifeq ($(BUILD_SHARED),yes) @@echo compiling dynamic library $(LIBVER) - $(CC) $(ALLFLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@@ - @@echo creating versioned links - $(LN_SF) $@@ liblz4.$(SHARED_EXT_MAJOR) - $(LN_SF) $@@ liblz4.$(SHARED_EXT) d63 1 a63 1 endif d66 3 a68 1 CLEAN += $(LIBLZ4) d71 1 a71 1 -liblz4: $(LIBLZ4) d74 1 a74 14 CLEAN += liblz4.pc liblz4.pc: liblz4.pc.in Makefile @@echo creating pkgconfig - $(SED) -e 's|@@PREFIX@@|$(prefix)|' \ - -e 's|@@LIBDIR@@|$(libdir)|' \ - -e 's|@@INCLUDEDIR@@|$(includedir)|' \ - -e 's|@@VERSION@@|$(LIBVER)|' \ - -e 's|=${prefix}/|=$${prefix}/|' \ + $(SED) -e 's|@@PREFIX@@|$(prefix)|g' \ + -e 's|@@LIBDIR@@|$(libdir)|g' \ + -e 's|@@INCLUDEDIR@@|$(includedir)|g' \ + -e 's|@@VERSION@@|$(LIBVER)|g' \ + -e 's|=${prefix}/|=$${prefix}/|g' \ $< >$@@ d76 4 a79 5 .PHONY: clean @@@@ -195,13 +197,13 @@@@ pkgconfigdir ?= $(PKGCONFIGDIR) .PHONY: install install: lib liblz4.pc d95 1 a95 1 @@@@ -211,15 +213,13 @@@@ install: lib liblz4.pc @ 1.12 log @lz4: Libtoolize. As well as making this package more portable to exotic linkers, it can now take better advantage of make-level parallelism. @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.11 2022/08/16 13:02:56 adam Exp $ d6 1 a6 1 --- lib/Makefile.orig 2022-08-15 22:45:31.000000000 +0000 d9 1 a9 1 SED = sed d12 3 a14 3 -LIBVER_MAJOR_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_MINOR_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_PATCH_SCRIPT:=`$(SED) -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` d21 2 a22 2 @@@@ -56,6 +56,7 @@@@ CFLAGS += $(DEBUGFLAGS) FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) d29 1 a29 1 @@@@ -92,10 +93,13 @@@@ all: lib a32 1 -liblz4.a: $(SRCFILES) d37 3 d47 1 a47 1 @@@@ -117,17 +121,13 @@@@ $(LIBLZ4): $(SRCFILES) liblz4-dll.o d52 4 a55 2 - @@echo compiling dynamic library $(LIBVER) - $(CC) $(FLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@@ a58 3 - +liblz4.la: $(OBJFILES) + @@echo linking dynamic library $(LIBVER) d60 2 d63 1 d69 1 a69 4 .PHONY: clean clean: @@@@ -171,20 +171,20 @@@@ pkgconfigdir ?= $(PKGCONFIGDIR) d73 4 a76 4 - -e 's|@@LIBDIR@@|$(libdir)|' \ - -e 's|@@INCLUDEDIR@@|$(includedir)|' \ - -e 's|@@VERSION@@|$(LIBVER)|' \ - -e 's|=${prefix}/|=$${prefix}/|' \ d78 8 a85 5 + -e 's|@@LIBDIR@@|$(libdir)|g' \ + -e 's|@@INCLUDEDIR@@|$(includedir)|g' \ + -e 's|@@VERSION@@|$(LIBVER)|g' \ + -e 's|=${prefix}/|=$${prefix}/|g' \ $< >$@@ d87 1 d89 1 a89 1 - $(INSTALL_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/ d97 1 d100 1 d104 3 a106 3 @@@@ -194,15 +194,13 @@@@ install: lib liblz4.pc $(INSTALL_PROGRAM) dll/$(LIBLZ4).dll $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) dll/$(LIBLZ4_EXP) $(DESTDIR)$(libdir) d123 1 a123 1 uninstall: @ 1.11 log @lz4: updated to 1.9.4 v1.9.4: perf : faster decoding speed (~+20%) on Apple Silicon platforms, by @@zeux perf : faster decoding speed (~+70%) for -BD4 setting in CLI api : new function LZ4_decompress_safe_partial_usingDict() by @@yawqi api : lz4frame: ability to provide custom allocators at state creation api : can skip checksum validation for improved decoding speed api : new experimental unit lz4file for file i/o API, by @@anjiahao1 api : new experimental function LZ4F_uncompressedUpdate(), by @@alexmohr cli : --list works on stdin input, by @@Low-power cli : --no-crc does not produce (compression) nor check (decompression) checksums cli : fix: --test and --list produce an error code when parsing invalid input cli : fix: support skippable frames when passed via stdin, reported by @@davidmankin build: fix: Makefile respects CFLAGS directives passed via environment variable build: LZ4_FREESTANDING, new build macro for freestanding environments, by @@t-mat build: make and make test are compatible with -j parallel run build: AS/400 compatibility, by @@jonrumsey build: Solaris 10 compatibility, by @@pekdon build: MSVC 2022 support, by @@t-mat build: improved meson script, by @@eli-schwartz doc : Updated LZ4 block format, provide an "implementation notes" section @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.10 2019/04/30 09:17:38 adam Exp $ d3 2 a4 1 Make portable. Unlock install target. Use pkgsrc install scripts. d21 47 a67 19 @@@@ -46,6 +46,7 @@@@ LIBVER := $(shell echo $(LIBVER_SCRIPT) BUILD_SHARED:=yes BUILD_STATIC:=yes +OS ?= $(shell uname) CPPFLAGS+= -DXXH_NAMESPACE=LZ4_ CPPFLAGS+= $(MOREFLAGS) CFLAGS ?= -O3 @@@@ -162,29 +163,24 @@@@ libdir ?= $(LIBDIR) INCLUDEDIR ?= $(prefix)/include includedir ?= $(INCLUDEDIR) - ifneq (,$(filter $(TARGET_OS),OpenBSD FreeBSD NetBSD DragonFly MidnightBSD)) -PKGCONFIGDIR ?= $(prefix)/libdata/pkgconfig - else -PKGCONFIGDIR ?= $(libdir)/pkgconfig - endif -pkgconfigdir ?= $(PKGCONFIGDIR) +pkgconfigdir ?= $(prefix)/lib/pkgconfig d97 1 a97 1 @@@@ -194,15 +190,15 @@@@ install: lib liblz4.pc d102 3 a104 3 + $(BSD_INSTALL_LIB) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir) $(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT_MAJOR) $(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT) @ 1.10 log @lz4: updated to 1.9.1 LZ4 v1.9.1 Changes fix : decompression functions were reading a few bytes beyond input size api : fix : lz4frame initializers compatibility with c++ cli : added command --list build: improved Windows build build: AIX, by Norman Green LZ4 v1.9.0 This release brings an assortment of small improvements and bug fixes, as detailed below : perf: large decompression speed improvement on x86/x64 (up to +20%) api : changed : _destSize() compression variants are promoted to stable API api : new : LZ4_initStream(HC), replacing LZ4_resetStream(HC) api : changed : LZ4_resetStream(HC) as recommended reset function, for better performance on small data cli : support custom block sizes build: source code can be amalgamated, by Bing Xu build: added meson build build: new build macros : LZ4_DISTANCE_MAX, LZ4_FAST_DEC_LOOP install: MidnightBSD install: msys2 on Windows 10 @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.9 2018/09/14 09:48:56 fhajny Exp $ d5 1 a5 1 --- lib/Makefile.orig 2019-04-23 17:18:40.000000000 +0000 d7 2 a8 2 @@@@ -33,9 +33,9 @@@@ # ################################################################ d11 3 a13 3 -LIBVER_MAJOR_SCRIPT:=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_MINOR_SCRIPT:=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` -LIBVER_PATCH_SCRIPT:=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ./lz4.h` d20 1 a20 1 @@@@ -45,6 +45,7 @@@@ LIBVER := $(shell echo $(LIBVER_SCRIPT) d26 1 d28 1 a28 2 DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \ @@@@ -156,28 +157,23 @@@@ libdir ?= $(LIBDIR) d42 1 a42 1 - $(Q)sed -e 's|@@PREFIX@@|$(prefix)|' \ d46 2 a47 1 + $(Q)sed -e 's|@@PREFIX@@|$(prefix)|g' \ d51 1 d55 5 a59 5 - $(Q)$(INSTALL_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/ - $(Q)$(INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/ + $(Q)$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/ + $(Q)$(BSD_INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/ @@echo Installing libraries d61 4 a64 4 - $(Q)$(INSTALL_DATA) liblz4.a $(DESTDIR)$(libdir)/liblz4.a - $(Q)$(INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h + $(Q)$(BSD_INSTALL_LIB) liblz4.a $(DESTDIR)$(libdir)/liblz4.a + $(Q)$(BSD_INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h d67 4 a70 4 # Traditionnally, one installs the DLLs in the bin directory as programs @@@@ -187,15 +183,15 @@@@ install: lib liblz4.pc $(Q)$(INSTALL_PROGRAM) dll/$(LIBLZ4).dll $(DESTDIR)$(bindir) $(Q)$(INSTALL_PROGRAM) dll/$(LIBLZ4_EXP) $(DESTDIR)$(libdir) d72 4 a75 4 - $(Q)$(INSTALL_PROGRAM) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir) + $(Q)$(BSD_INSTALL_LIB) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir) $(Q)$(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT_MAJOR) $(Q)$(LN_SF) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT) d78 7 a84 7 @@echo Installing headers in $(includedir) - $(Q)$(INSTALL_DATA) lz4.h $(DESTDIR)$(includedir)/lz4.h - $(Q)$(INSTALL_DATA) lz4hc.h $(DESTDIR)$(includedir)/lz4hc.h - $(Q)$(INSTALL_DATA) lz4frame.h $(DESTDIR)$(includedir)/lz4frame.h + $(Q)$(BSD_INSTALL_DATA) lz4.h $(DESTDIR)$(includedir)/lz4.h + $(Q)$(BSD_INSTALL_DATA) lz4hc.h $(DESTDIR)$(includedir)/lz4hc.h + $(Q)$(BSD_INSTALL_DATA) lz4frame.h $(DESTDIR)$(includedir)/lz4frame.h @ 1.9 log @archivers/lz4: Update to 1.8.3. - perf: minor decompression speed improvement (~+2%) with gcc - fix : corruption in v1.8.2 at level 9 for files > 64KB under rare conditions (#560) - cli : new command --fast, by @@jennifermliu - api : LZ4_decompress_safe_partial() now decodes exactly the nb of bytes requested (feature request #566) - build : added Haiku target, by @@fbrosson, and MidnightBSD, by @@laffer1 - doc : updated documentation regarding dictionary compression @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.8 2018/05/10 13:16:27 adam Exp $ d5 1 a5 1 --- lib/Makefile.orig 2018-09-11 19:52:06.000000000 +0000 d20 9 a28 9 @@@@ -124,7 +124,6 @@@@ clean: #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD)) .PHONY: listL120 listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (note : $$, for Makefile compatibility) @@@@ -143,12 +142,7 @@@@ libdir ?= $(LIBDIR) d32 1 a32 1 -ifneq (,$(filter $(OS),OpenBSD FreeBSD NetBSD DragonFly)) d34 1 a34 1 -else d36 1 a36 1 -endif a39 4 ifneq (,$(filter $(OS),SunOS)) INSTALL ?= ginstall @@@@ -161,29 +155,29 @@@@ INSTALL_DATA ?= $(INSTALL) -m 644 d53 1 a53 1 - $(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ d55 1 a55 1 + $(Q)$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ d58 1 a58 1 ifeq ($(BUILD_STATIC),yes) d63 7 a69 2 endif ifeq ($(BUILD_SHARED),yes) d72 4 a75 3 $(Q)ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT_MAJOR) $(Q)ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT) endif a85 5 @@@@ -198,4 +192,3 @@@@ uninstall: $(Q)$(RM) $(DESTDIR)$(includedir)/lz4frame_static.h @@echo lz4 libraries successfully uninstalled -endif @ 1.8 log @lz4: updated to 1.8.2 v1.8.2 perf: *much* faster dictionary compression on small files perf: improved decompression speed and binary size perf: slightly faster HC compression and decompression speed perf: very small compression ratio improvement fix : compression compatible with low memory addresses (< 0xFFFF) fix : decompression segfault when provided with NULL input cli : new command --favor-decSpeed cli : benchmark mode more accurate for small inputs fullbench : can bench _destSize() variants doc : clarified block format parsing restrictions @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.7 2018/01/13 19:00:09 adam Exp $ d5 1 a5 1 --- lib/Makefile.orig 2018-05-07 21:38:45.000000000 +0000 d20 1 a20 1 @@@@ -123,7 +123,6 @@@@ clean: d24 1 a24 1 -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS)) d28 1 a28 1 @@@@ -142,12 +141,7 @@@@ libdir ?= $(LIBDIR) d32 1 a32 1 -ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly)) d40 1 a40 1 ifneq (,$(filter $(shell uname),SunOS)) d42 1 a42 1 @@@@ -160,29 +154,29 @@@@ INSTALL_DATA ?= $(INSTALL) -m 644 d84 1 a84 1 @@@@ -197,4 +191,3 @@@@ uninstall: @ 1.7 log @lz4: updated to 1.8.1 v1.8.1 perf : faster and stronger ultra modes (levels 10+) perf : slightly faster compression and decompression speed perf : fix bad degenerative case fix : decompression failed when using a combination of extDict + low memory address cli : support for dictionary compression (-D) cli : fix : lz4 -d --rm preserves timestamp cli : fix : do not modify /dev/null permission as root api : _destSize() variant supported for all compression levels build : make and make test compatible with -jX build : can control LZ4LIB_VISIBILITY macro install: fix man page directory @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.6 2017/08/19 14:54:25 adam Exp $ d5 1 a5 1 --- lib/Makefile.orig 2017-08-17 17:55:30.000000000 +0000 d20 1 a20 1 @@@@ -113,7 +113,6 @@@@ clean: d26 5 a30 5 DESTDIR ?= # directory variables : GNU conventions prefer lowercase @@@@ -126,11 +125,7 @@@@ LIBDIR ?= $(libdir) includedir ?= $(PREFIX)/include INCLUDEDIR ?= $(includedir) d33 1 a33 1 -PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig d35 1 a35 1 -PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig d37 2 a38 1 +PKGCONFIGDIR ?= $(PREFIX)/lib/pkgconfig d42 1 a42 1 @@@@ -143,27 +138,27 @@@@ INSTALL_DATA ?= $(INSTALL) -m 644 d46 3 a48 3 - @@sed -e 's|@@PREFIX@@|$(PREFIX)|' \ - -e 's|@@LIBDIR@@|$(LIBDIR)|' \ - -e 's|@@INCLUDEDIR@@|$(INCLUDEDIR)|' \ d50 3 a52 3 + @@sed -e 's|@@PREFIX@@|$(PREFIX)|g' \ + -e 's|@@LIBDIR@@|$(LIBDIR)|g' \ + -e 's|@@INCLUDEDIR@@|$(INCLUDEDIR)|g' \ d57 4 a60 4 - @@$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ $(DESTDIR)$(LIBDIR)/ - @@$(INSTALL_DATA) liblz4.pc $(DESTDIR)$(PKGCONFIGDIR)/ + @@$(BSD_INSTALL_DATA_DIR) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ $(DESTDIR)$(LIBDIR)/ + @@$(BSD_INSTALL_DATA) liblz4.pc $(DESTDIR)$(PKGCONFIGDIR)/ d63 4 a66 4 - @@$(INSTALL_DATA) liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a - @@$(INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(INCLUDEDIR)/lz4frame_static.h + @@$(BSD_INSTALL_LIB) liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a + @@$(BSD_INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(INCLUDEDIR)/lz4frame_static.h d68 13 a80 11 - @@$(INSTALL_PROGRAM) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) + @@$(BSD_INSTALL_LIB) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) @@ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_MAJOR) @@ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT) @@echo Installing headers in $(INCLUDEDIR) - @@$(INSTALL_DATA) lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h - @@$(INSTALL_DATA) lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h - @@$(INSTALL_DATA) lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h + @@$(BSD_INSTALL_DATA) lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h + @@$(BSD_INSTALL_DATA) lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h + @@$(BSD_INSTALL_DATA) lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h d84 2 a85 2 @@@@ -177,4 +172,3 @@@@ uninstall: @@$(RM) $(DESTDIR)$(INCLUDEDIR)/lz4frame.h @ 1.6 log @LZ4 v1.8.0 cli : fix : do not modify /dev/null permissions, reported by @@Maokaman1 cli : added GNU separator -- specifying that all following arguments are files cli : restored -BX command enabling block checksum API : added LZ4_compress_HC_destSize(), by @@remittor API : added LZ4F_resetDecompressionContext() API : lz4frame : negative compression levels trigger fast acceleration, request by @@llchan API : lz4frame : can control block checksum and dictionary ID API : fix : expose obsolete decoding functions, reported by @@cyfdecyf API : experimental : lz4frame_static.h : new dictionary compression API build : fix : static lib installation, by @@ido build : dragonFlyBSD, OpenBSD, NetBSD supported build : LZ4_MEMORY_USAGE can be modified at compile time, through external define doc : Updated LZ4 Frame format to v1.6.0, restoring Dictionary-ID field in header doc : lz4's API manual in .html format, by @@inikep @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.5 2017/01/05 11:07:55 wiz Exp $ d27 1 a27 1 # directory variables : GNU convention prefers lowercase @ 1.5 log @Fix installation and PLIST. @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.4 2017/01/04 15:43:51 fhajny Exp $ d5 1 a5 1 --- lib/Makefile.orig 2017-01-03 05:09:52.000000000 +0000 d7 1 a7 1 @@@@ -31,9 +31,9 @@@@ d20 5 a24 2 @@@@ -107,11 +107,6 @@@@ clean: @@echo Cleaning library completed d26 5 a30 12 -#----------------------------------------------------------------------------- -# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets -#----------------------------------------------------------------------------- -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS)) - ifneq (,$(filter $(shell uname),SunOS)) INSTALL ?= ginstall else @@@@ -123,37 +118,33 @@@@ DESTDIR ?= LIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include d39 3 a41 2 INSTALL_LIB ?= $(INSTALL) -m 755 INSTALL_DATA ?= $(INSTALL) -m 644 d56 1 a56 1 - @@$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ d58 1 a58 1 + @@$(BSD_INSTALL_DATA_DIR) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ d62 2 a63 1 - @@$(INSTALL_LIB) liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a d65 1 d67 1 a67 1 - @@$(INSTALL_LIB) liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) d71 1 a71 1 @@echo Installing includes d78 1 a78 1 @@echo lz4 static and shared libraries installed d81 1 a81 1 @@@@ -167,4 +158,3 @@@@ uninstall: @ 1.4 log @Update archivers/lz4 to 1.7.5. - lz4hc : new high compression mode : levels 10-12 compress more and slower - lz4cat : fix : works with relative path (#284) and stdin (#285) - cli : fix minor notification when using -r recursive mode - API : lz4frame : LZ4F_frameBound(0) gives upper bound of *flush() and *End() operations - doc : markdown version of man page - build : Makefile : fix make -jX lib+exe concurrency - build : cmake : improvements by Michal Gorny @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.3 2016/12/07 21:34:58 fhajny Exp $ d32 13 a44 1 @@@@ -134,26 +129,26 @@@@ INSTALL_DATA ?= $(INSTALL) -m 644 d82 1 a82 1 @@@@ -167,4 +162,3 @@@@ uninstall: @ 1.3 log @Update archivers/lz4 to 1.7.4.2. Changes since release 131: v1.7.4.2 - fix : Makefile : release build compatible with PIE and customized compilation directives provided through environment variables (#274, reported by Antoine Martin) v1.7.4 - Improved : much better speed in -mx32 mode - cli : fix : Large file support in 32-bits mode on Mac OS-X - fix : compilation on gcc 4.4 (#272), reported by Antoine Martin v1.7.3 - Changed : moved to versioning; package, cli and library have same version number - Improved: Small decompression speed boost - Improved: Small compression speed improvement on 64-bits systems - Improved: Small compression ratio and speed improvement on small files - Improved: Significant speed boost on ARMv6 and ARMv7 - Fix : better ratio on 64-bits big-endian targets - Improved cmake build script, by Evan Nemerson - New liblz4-dll project, by Przemyslaw Skibinki - Makefile: Generates object files (*.o) for faster (re)compilation on low power systems - cli : new : --rm and --help commands - cli : new : preserved file attributes, by Przemyslaw Skibinki - cli : fix : crash on some invalid inputs - cli : fix : -t correctly validates lz4-compressed files, by Nick Terrell - cli : fix : detects and reports fread() errors, thanks to Hiroshi Fujishima report #243 - cli : bench : new : -r recursive mode - lz4cat : can cat multiple files in a single command line (#184) - Added : doc/lz4_manual.html, by Przemyslaw Skibinski - Added : dictionary compression and frame decompression examples, by Nick Terrell - Added : Debianization, by Evgeniy Polyakov @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.2 2015/06/09 12:04:19 fhajny Exp $ d5 1 a5 1 --- lib/Makefile.orig 2016-11-22 20:34:17.000000000 +0000 d20 1 a20 1 @@@@ -107,31 +107,27 @@@@ clean: d24 9 a32 4 -#------------------------------------------------------------------------ -#make install is validated only for Linux, OSX, kFreeBSD, Hurd and -#FreeBSD targets -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD)) d47 11 a57 4 - @@install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ - @@install -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) + $(BSD_INSTALL_DATA_DIR) -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ + $(BSD_INSTALL_LIB) -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR) d60 7 a66 12 - @@install -m 644 liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ + $(BSD_INSTALL_DATA) -m 644 liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ ifeq ($(BUILD_STATIC),yes) - @@install -m 644 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a + $(BSD_INSTALL_DATA) -m 644 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a endif - @@install -m 644 lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h - @@install -m 644 lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h - @@install -m 644 lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h + $(BSD_INSTALL_DATA) -m 644 lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h + $(BSD_INSTALL_DATA) -m 644 lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h + $(BSD_INSTALL_DATA) -m 644 lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h d70 1 a70 1 @@@@ -145,4 +141,3 @@@@ uninstall: @ 1.2 log @Update archivers/lz4 to 130. LZ4 r130 Fixed : incompatibility sparse mode vs console Fixed : LZ4IO exits too early when frame crc not present Fixed : incompatibility sparse mode vs append mode Performance fix : big compression speed boost for clang (+30%) New : cross-version test, by Takayuki Matsuoka LZ4 r129 New : LZ4_compress_fast() Changed: New lz4 and lz4hc compression API. Previous function prototypes still supported. Changed: Sparse file support enabled by default New : LZ4 CLI improved performance compressing/decompressing multiple file Added : LZ4_compress_destSize() Fixed : GCC 4.9+ vector optimization Changed: Enums converted to LZ4F_ namespace convention Added : AppVeyor CI environment, for Visual tests Modified:Obsolete functions generate warnings Fixed : Bug #75 (unfinished stream) Updated: Documentation converted to MarkDown format LZ4 r128 New : lz4cli sparse file support New : command -m, to compress multiple files in a single command Fixed : Restored lz4hc compression ratio (slightly lower since r124) New : lz4 cli supports long commands New : lz4frame & lz4cli frame content size support New : lz4frame supports skippable frames Changed: Default "make install" directory is /usr/local New : lz4 cli supports "pass-through" mode New : datagen can generate sparse files New : scan-build tests New : g++ compatibility tests New : arm cross-compilation test Fixed : Fuzzer + frametest compatibility with NetBSD Added : Visual project directory Updated: Man page & Specification @ text @d1 1 a1 1 $NetBSD: patch-lib_Makefile,v 1.1 2015/03/23 22:24:11 fhajny Exp $ d3 3 a5 2 Make portable, use pkgsrc install scripts. --- lib/Makefile.orig 2015-05-26 01:13:50.000000000 +0000 d7 2 a8 1 @@@@ -32,9 +32,9 @@@@ d11 10 a20 11 VERSION ?= 129 -LIBVER_MAJOR=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` -LIBVER_MINOR=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` -LIBVER_PATCH=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` +LIBVER_MAJOR=`awk '$$2=="LZ4_VERSION_MAJOR" {print $$3}' < lz4.h` +LIBVER_MINOR=`awk '$$2=="LZ4_VERSION_MINOR" {print $$3}' < lz4.h` +LIBVER_PATCH=`awk '$$2=="LZ4_VERSION_RELEASE" {print $$3}' < lz4.h` LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) DESTDIR?= @@@@ -79,28 +79,24 @@@@ clean: d25 4 a28 3 -#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) - d32 3 a34 3 - -e 's|@@LIBDIR@@|$(LIBDIR)|' \ - -e 's|@@INCLUDEDIR@@|$(INCLUDEDIR)|' \ - -e 's|@@VERSION@@|$(VERSION)|' \ d36 4 a39 4 + -e 's|@@LIBDIR@@|$(LIBDIR)|g' \ + -e 's|@@INCLUDEDIR@@|$(INCLUDEDIR)|g' \ + -e 's|@@VERSION@@|$(VERSION)|g' \ $< >$@@ d41 1 a41 1 install: liblz4 liblz4.pc d43 8 a50 4 - @@install -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_VER) - @@cp -a liblz4.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR) - @@cp -a liblz4.$(SHARED_EXT) $(DESTDIR)$(LIBDIR) - @@cp -a liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ d52 2 a56 6 + $(BSD_INSTALL_DATA_DIR) -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ + $(BSD_INSTALL_LIB) -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_VER) + @@ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_MAJOR) + @@ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT) + $(BSD_INSTALL_DATA) liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ + $(BSD_INSTALL_LIB) -m 644 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a d60 1 a60 1 @@echo lz4 static and shared library installed d63 2 a64 3 @@@@ -113,5 +109,3 @@@@ uninstall: @@[ -f $(DESTDIR)$(INCLUDEDIR)/lz4hc.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4hc.h @@[ -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h d66 1 a66 1 - @ 1.1 log @Update archivers/lz4 to 127. r127: N/A : added a file on SVN r126: New : lz4frame API is now integrated into liblz4 Fixed : GCC 4.9 bug on highest performance settings, reported by Greg Slazinski Fixed : bug within LZ4 HC streaming mode, reported by James Boyle Fixed : older compiler don't like nameless unions, reported by Cheyi Lin Changed : lz4 is C90 compatible Changed : added -pedantic option, fixed a few mminor warnings r125: Changed : endian and alignment code Changed : directory structure : new "lib" directory Updated : lz4io, now uses lz4frame Improved: slightly improved decoding speed Fixed : LZ4_compress_limitedOutput(); Special thanks to Christopher Speller ! Fixed : some alignment warnings under clang Fixed : deprecated function LZ4_slideInputBufferHC() @ text @d1 1 a1 1 $NetBSD$ d4 1 a4 1 --- lib/Makefile.orig 2014-12-19 08:51:32.000000000 +0000 d6 1 a6 1 @@@@ -33,9 +33,9 @@@@ d9 1 a9 1 VERSION ?= 126 d19 1 a19 1 @@@@ -80,28 +80,24 @@@@ clean: a61 1 @@[ -f $(DESTDIR)$(INCLUDEDIR)/lz4.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4.h d63 1 @