initial import of lzma utils 4.27.1
The purpose of LZMA utils is to make the usage of LZMA compression easy on *NIX based systems. The average compression ratio is usually 30% better than 'gzip --best' and 15% better than 'bzip2 --best'. Some files can be compressed even over 50% smaller than with gzip. (read DESCR for more...) thanks to todd@ for testing on 7 archs, and to everyone else who tested. help/ok naddy@, ok alek@, and before the latest tweaks: ok todd@
This commit is contained in:
parent
edb9dbe53c
commit
d460e8df37
26
archivers/lzma/Makefile
Normal file
26
archivers/lzma/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
|
||||
COMMENT= "LZMA utils - make usage of LZMA compression easy"
|
||||
|
||||
DISTNAME= lzma-4.27.1
|
||||
CATEGORIES= archivers
|
||||
|
||||
HOMEPAGE= http://tukaani.org/lzma/
|
||||
|
||||
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
||||
|
||||
# GPL + LGPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
WANTLIB= c m stdc++
|
||||
|
||||
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}"
|
||||
|
||||
REGRESS_TARGET= test
|
||||
|
||||
.include <bsd.port.mk>
|
4
archivers/lzma/distinfo
Normal file
4
archivers/lzma/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (lzma-4.27.1.tar.gz) = 70b8b4ee9194d450642115b103dd040d
|
||||
RMD160 (lzma-4.27.1.tar.gz) = a09582b8e303288fa2def08680d040c71495aff1
|
||||
SHA1 (lzma-4.27.1.tar.gz) = 39ee4321c26c80d2190347a5e1961323c913e008
|
||||
SIZE (lzma-4.27.1.tar.gz) = 102594
|
38
archivers/lzma/patches/patch-Makefile
Normal file
38
archivers/lzma/patches/patch-Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
--- Makefile.orig Mon Sep 12 15:39:55 2005
|
||||
+++ Makefile Tue Jan 24 10:11:54 2006
|
||||
@@ -1,11 +1,11 @@
|
||||
## There is no need to have DESTDIR separately since no file has paths coded
|
||||
## in them. Just "make prefix=/my/path/usr install" when creating a package.
|
||||
|
||||
-prefix = /usr/local
|
||||
+prefix = $(PREFIX)
|
||||
bindir = $(prefix)/bin
|
||||
mandir = $(prefix)/man
|
||||
-docdir = $(prefix)/doc
|
||||
-docdir_name = lzma-4.27.1
|
||||
+docdir = $(prefix)/share/doc
|
||||
+docdir_name = lzma
|
||||
|
||||
INSTALL = install
|
||||
RM = rm -f
|
||||
@@ -20,8 +20,7 @@ sdk:
|
||||
cd sdk/SRC/7zip/Compress/LZMA_Alone && $(MAKE)
|
||||
|
||||
install: all
|
||||
- $(INSTALL) -dm 0755 $(bindir) $(mandir)/man1 \
|
||||
- $(docdir)/$(docdir_name)
|
||||
+ $(INSTALL) -dm 0755 $(bindir) $(mandir)/man1
|
||||
$(INSTALL) -pm 0755 utils/lzmadec utils/lzmainfo \
|
||||
utils/lzmash utils/lzdiff utils/lzmore utils/lzgrep \
|
||||
sdk/SRC/7zip/Compress/LZMA_Alone/lzma \
|
||||
@@ -29,9 +28,6 @@ install: all
|
||||
$(INSTALL) -pm 0644 man/lzma.1 man/lzmadec.1 man/lzmainfo.1 \
|
||||
man/lzmash.1 man/lzdiff.1 man/lzgrep.1 man/lzmore.1 \
|
||||
$(mandir)/man1
|
||||
- $(INSTALL) -pm 0644 BENCHMARKS COPYING.GPL COPYING.LGPL INSTALL \
|
||||
- README README.LICENSES THANKS TODO sdk/lzma.txt \
|
||||
- $(docdir)/$(docdir_name)
|
||||
$(LN) lzmash $(bindir)/lunzmash
|
||||
$(LN) lzmash $(bindir)/lzcat
|
||||
$(LN) lzdiff $(bindir)/lzcmp
|
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-sdk_SRC_7zip_Compress_LZMA_Alone_Makefile,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
--- sdk/SRC/7zip/Compress/LZMA_Alone/Makefile.orig Wed Aug 24 19:15:58 2005
|
||||
+++ sdk/SRC/7zip/Compress/LZMA_Alone/Makefile Tue Jan 24 10:07:27 2006
|
||||
@@ -4,12 +4,12 @@
|
||||
PROG = lzma
|
||||
|
||||
## Compile only bt4, hc3 and hc4 match finders:
|
||||
-CXX = gcc -DCOMPRESS_MF_BT -DCOMPRESS_MF_BT4 -DCOMPRESS_MF_HC \
|
||||
- -I ../../../ -c $(CFLAGS)
|
||||
-LD = gcc $(CFLAGS)
|
||||
+CXX = $(MYCXX) -DCOMPRESS_MF_BT -DCOMPRESS_MF_BT4 -DCOMPRESS_MF_HC \
|
||||
+ -I ../../../ -c $(CXXFLAGS)
|
||||
+LD = $(MYCXX) $(CXXFLAGS)
|
||||
|
||||
## Avoid dependency on libstdc++ and libgcc_s:
|
||||
-LIB = -lm -lsupc++ -static-libgcc
|
||||
+LIB = -lm
|
||||
## LIB = -lm -lstdc++
|
||||
|
||||
RM = rm -f
|
14
archivers/lzma/patches/patch-utils_Makefile
Normal file
14
archivers/lzma/patches/patch-utils_Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-utils_Makefile,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
--- utils/Makefile.orig Sun Jan 22 16:45:05 2006
|
||||
+++ utils/Makefile Sun Jan 22 16:45:32 2006
|
||||
@@ -2,8 +2,8 @@
|
||||
## -D_LZMA_SYSTEM_SIZE_T should keep it working also on 64-bit arch.
|
||||
## -D_LZMA_PROB32 is a speed optimization.
|
||||
|
||||
-CC = gcc -D_LZMA_IN_CB -D_LZMA_OUT_READ -D_LZMA_SYSTEM_SIZE_T -D_LZMA_PROB32
|
||||
-LD = gcc
|
||||
+CC = $(MYCC) -D_LZMA_IN_CB -D_LZMA_OUT_READ -D_LZMA_SYSTEM_SIZE_T -D_LZMA_PROB32
|
||||
+LD = $(MYCC)
|
||||
LDFLAGS = $(CFLAGS)
|
||||
RM = rm -f
|
||||
LZMA_C = ../sdk/SRC/7zip/Compress/LZMA_C
|
16
archivers/lzma/patches/patch-utils_lzmash
Normal file
16
archivers/lzma/patches/patch-utils_lzmash
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-utils_lzmash,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
--- utils/lzmash.orig Tue Jan 24 10:09:07 2006
|
||||
+++ utils/lzmash Tue Jan 24 10:10:21 2006
|
||||
@@ -570,10 +570,10 @@ if [ $USE_STDOUT = 0 -a $TEST_ONLY = 0 ]
|
||||
FILE_INFO=$(ls -dLln -- "$SOURCE" \
|
||||
| tr -s ' ' | cut -f 1,3,4 -d ' ')
|
||||
chown "$(echo "$FILE_INFO" | cut -f 2,3 -d ' ' \
|
||||
- | tr ' ' ':')" -- "$TARGET"
|
||||
+ | tr ' ' ':')" "$TARGET"
|
||||
chmod "$(echo "$FILE_INFO" | sed \
|
||||
's/^.\(...\)\(...\)\(...\).*$/u=\1,g=\2,o=\3/;s/-//g')"\
|
||||
- -- "$TARGET"
|
||||
+ "$TARGET"
|
||||
touch -cr "$SOURCE" -- "$TARGET"
|
||||
fi
|
||||
[ $KEEP_FILE = 0 ] && rm -f -- "$SOURCE"
|
18
archivers/lzma/pkg/DESCR
Normal file
18
archivers/lzma/pkg/DESCR
Normal file
@ -0,0 +1,18 @@
|
||||
LZMA is an abbreviation of Lempel-Ziv-Markov chain-Algorithm.
|
||||
It is the default compression method of 7z file format in 7-zip
|
||||
program. The purpose of LZMA utils is to make the usage of LZMA
|
||||
compression easy on *NIX based systems like GNU/*/Linux and *BSD.
|
||||
|
||||
The average compression ratio is usually 30% better than
|
||||
'gzip --best' and 15% better than 'bzip2 --best'. Some files can
|
||||
be compressed even over 50% smaller than with gzip. With speed
|
||||
LZMA cannot compete with gzip in neither compression nor
|
||||
decompression. With bzip2 LZMA is in par when compressing with
|
||||
approximately same compression ratio but for smallest file size
|
||||
the time required can be 5 times the time used by bzip2. Luckily
|
||||
the same does not apply to decompression speed: even the tightest
|
||||
LZMA files can be decompressed in time less than a half of the
|
||||
time that bzip2 would take. This makes LZMA an ideal compression
|
||||
tool for distributing files in the Internet and on CDs/DVDs
|
||||
because the files are usually compressed only once but
|
||||
decompressed many times.
|
27
archivers/lzma/pkg/PLIST
Normal file
27
archivers/lzma/pkg/PLIST
Normal file
@ -0,0 +1,27 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
||||
bin/lunzmash
|
||||
bin/lzcat
|
||||
bin/lzcmp
|
||||
bin/lzdiff
|
||||
bin/lzegrep
|
||||
bin/lzfgrep
|
||||
bin/lzgrep
|
||||
bin/lzless
|
||||
bin/lzma
|
||||
bin/lzmadec
|
||||
bin/lzmainfo
|
||||
bin/lzmash
|
||||
bin/lzmore
|
||||
@man man/man1/lunzmash.1
|
||||
@man man/man1/lzcat.1
|
||||
@man man/man1/lzcmp.1
|
||||
@man man/man1/lzdiff.1
|
||||
@man man/man1/lzegrep.1
|
||||
@man man/man1/lzfgrep.1
|
||||
@man man/man1/lzgrep.1
|
||||
@man man/man1/lzless.1
|
||||
@man man/man1/lzma.1
|
||||
@man man/man1/lzmadec.1
|
||||
@man man/man1/lzmainfo.1
|
||||
@man man/man1/lzmash.1
|
||||
@man man/man1/lzmore.1
|
Loading…
Reference in New Issue
Block a user