# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {ryandesign @ryandesign} openmaintainer
description high compression ratio archiver
LZMA is default and general compression method of 7z \
format in 7-Zip program. LZMA provides high compression \
ratio and very fast decompression.
homepage http://www.7-zip.org/sdk.html
master_sites sourceforge:project/sevenzip/LZMA%20SDK/${version}/
distname lzma[strsed ${version} {/\.//}]
checksums rmd160 70953d4ee8542addf566953e0ed62e9c75a016b5 \
sha256 c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e \
# Convert DOS to UNIX line endings so we can patch
reinplace "s|\r||g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
patchfiles patch-lzma.1 \
reinplace "s|@CC@|${configure.cc} ${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
reinplace "s|@CXX@|${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
build.dir ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone
build.args -f makefile.gcc
xinstall -s ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/lzma ${destroot}${prefix}/bin/lzma_alone
xinstall ${worksrcpath}/lzma.1 ${destroot}${prefix}/share/man/man1/lzma_alone.1
set docdir ${prefix}/share/doc/${name}/
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} history.txt lzma.txt \
The LZMA SDK program is installed as \"lzma_alone\", to avoid conflict with LZMA Utils