Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/tls-maxphys]: src/external/bsd/liblzf/usr.bin *Sigh* provide, by default...



details:   https://anonhg.NetBSD.org/src/rev/8c7087098c6e
branches:  tls-maxphys
changeset: 852915:8c7087098c6e
user:      tls <tls%NetBSD.org@localhost>
date:      Sun Sep 16 18:59:29 2012 +0000

description:
*Sigh* provide, by default, the dumb "allocate 64K on the stack" variant
of the lzf_compress API by default.  This is because there is evidently
code floating around out there in the world with broken autoconf scripts that
don't check for LZF_STATE_ARG in the lzf header files and just assume the
dumb version of the API.

We rename the sane API to lzf_compress_r and implement the dumb API in
terms of it.  Consequently, bump liblzf major version number.  This is
fine because nothing used our liblzf with the old API.

Add lzf(1) utility from LZF distribution.  Add manual page for lzf(1).

diffstat:

 external/bsd/liblzf/usr.bin/Makefile     |   9 +++++++++
 external/bsd/liblzf/usr.bin/Makefile.inc |   7 +++++++
 external/bsd/liblzf/usr.bin/lzf/Makefile |  19 +++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)

diffs (47 lines):

diff -r b5352b27b37c -r 8c7087098c6e external/bsd/liblzf/usr.bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/liblzf/usr.bin/Makefile      Sun Sep 16 18:59:29 2012 +0000
@@ -0,0 +1,9 @@
+#       $NetBSD: Makefile,v 1.1.4.2 2012/09/16 18:59:29 tls Exp $
+
+.include <bsd.init.mk>
+
+SUBDIR=        lzf
+
+.include "Makefile.inc"
+
+.include <bsd.subdir.mk>
diff -r b5352b27b37c -r 8c7087098c6e external/bsd/liblzf/usr.bin/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/liblzf/usr.bin/Makefile.inc  Sun Sep 16 18:59:29 2012 +0000
@@ -0,0 +1,7 @@
+#       $NetBSD: Makefile.inc,v 1.1.4.2 2012/09/16 18:59:29 tls Exp $
+
+.include <bsd.own.mk>
+
+BINDIR=                /usr/bin
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff -r b5352b27b37c -r 8c7087098c6e external/bsd/liblzf/usr.bin/lzf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/liblzf/usr.bin/lzf/Makefile  Sun Sep 16 18:59:29 2012 +0000
@@ -0,0 +1,19 @@
+#       $NetBSD: Makefile,v 1.1.4.2 2012/09/16 18:59:29 tls Exp $
+
+.include <bsd.own.mk>
+
+PROG=  lzf
+MAN=   lzf.1
+SRCS=  lzf.c
+
+LINKS+=        ${BINDIR}/lzf ${BINDIR}/unlzf \
+       ${BINDIR}/lzf ${BINDIR}/lzfcat
+
+MLINKS+= lzf.1 unlzf.1 \
+        lzf.1 lzfcat.1
+
+LDADD= -llzf
+
+.include "${.CURDIR}/../Makefile.inc"
+
+.include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index