# $Id: Portfile 80837 2011-07-18 21:16:41Z jmr@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name			lzo2
set my_name     lzo
version			2.05
revision		1
categories		archivers
license			GPL-2+
platforms		darwin
maintainers		gmail.com:yunzheng.hu
description		Real-time data compression library

long_description \
	LZO is a portable lossless data compression library written in ANSI C. \
	It offers pretty fast compression and very fast decompression. \
	Decompression requires no memory. \
	In addition there are slower compression levels achieving a quite \
	competitive compression ratio while still decompressing at \
	this very high speed. \
	LZO is distributed under the GNU General Public License.

homepage		http://www.oberhumer.com/opensource/lzo/
master_sites    ${homepage}download/ \
				ftp://ftp.uni-koeln.de/util/arc/
distname        ${my_name}-${version}

checksums           sha1    2307bcd0d13f1d53b623a54094c33b703544111c \
                    rmd160  206ecf9b2d1aaada97268fbf422439de21ef3d15

set docdir ${prefix}/share/doc/${name}

configure.args	--enable-shared --enable-static --disable-asm \
				--docdir=${docdir}

test.run		yes
test.target		check

platform darwin 8 {
	# supposedly, the asm bits work on tiger
	configure.args-delete --disable-asm
}

post-destroot {
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} BUGS ChangeLog README doc/LZOTEST.TXT \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "Version (\\d+(?:\\.\\d+)*)"

