# -*- 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 # $Id: Portfile 133710 2015-03-09 08:04:30Z ryandesign@macports.org $ PortSystem 1.0 name lzma version 4.65 categories archivers license public-domain platforms darwin maintainers ryandesign openmaintainer description high compression ratio archiver long_description \ 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} {/\.//}] use_bzip2 yes checksums rmd160 70953d4ee8542addf566953e0ed62e9c75a016b5 \ sha256 c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e extract.mkdir yes post-extract { # 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 \ patch-makefile.gcc post-patch { reinplace "s|@CC@|${configure.cc} [get_canonical_archflags cc]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc reinplace "s|@CXX@|${configure.cxx} [get_canonical_archflags cxx]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc } use_configure no variant universal {} build.dir ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone build.type gnu build.args -f makefile.gcc installs_libs no destroot { 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 \ ${destroot}${docdir} } notes " The LZMA SDK program is installed as \"lzma_alone\", to avoid conflict with LZMA Utils " livecheck.type regex livecheck.regex {(\d+(?:\.\d+)*):}