1SUMMARY="A portable lossless data compression library"
2DESCRIPTION="LZO is a data compression library which is suitable for data \
3de-/compression in real-time. This means it favours speed over compression \
4ratio.
5LZO is written in ANSI C. Both the source code and the compressed data format \
6are designed to be portable across platforms.
7
8LZO implements a number of algorithms with the following features:
9
10* Decompression is simple and *very* fast.
11* Requires no memory for decompression.
12* Compression is pretty fast.
13* Requires 64 kB of memory for compression.
14* Allows you to dial up extra compression at a speed cost in the compressor. \
15The speed of the decompressor is not reduced.
16* Includes compression levels for generating pre-compressed data which achieve \
17a quite competitive compression ratio.
18* There is also a compression level which needs only 8 kB for compression.
19* Algorithm is thread safe.
20* Algorithm is lossless.
21* LZO supports overlapping compression and in-place decompression."
22HOMEPAGE="http://www.oberhumer.com/opensource/lzo/"
23COPYRIGHT="1996-2011 Markus F.X.J Oberhumer"
24LICENSE="GNU GPL v2"
25REVISION="3"
26SOURCE_URI="http://www.oberhumer.com/opensource/lzo/download/lzo-$portVersion.tar.gz"
27CHECKSUM_SHA256="c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072"
28
29ARCHITECTURES="all"
30SECONDARY_ARCHITECTURES="x86 x86_gcc2"
31
32PROVIDES="
33	lzo$secondaryArchSuffix = $portVersion
34	lib:liblzo2$secondaryArchSuffix = 2.0.0 compat >= 2
35	"
36REQUIRES="
37	haiku$secondaryArchSuffix
38	"
39
40PROVIDES_devel="
41	lzo${secondaryArchSuffix}_devel = $portVersion
42	devel:liblzo2$secondaryArchSuffix = 2.0.0 compat >= 2
43	"
44REQUIRES_devel="
45	lzo$secondaryArchSuffix == $portVersion base
46	"
47
48BUILD_REQUIRES="
49	haiku${secondaryArchSuffix}_devel
50	"
51BUILD_PREREQUIRES="
52	cmd:awk
53	cmd:gcc$secondaryArchSuffix
54	cmd:make
55	"
56
57BUILD()
58{
59	runConfigure ./configure --enable-shared \
60		--disable-static
61	make $jobArgs
62}
63
64INSTALL()
65{
66	make install
67
68	rm $libDir/liblzo2.la
69
70	prepareInstalledDevelLib liblzo2
71	fixPkgconfig
72	packageEntries devel $developDir $documentationDir
73}
74
75TEST()
76{
77	make check
78}
79