# -*- 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 118734 2014-04-09 23:01:06Z mfeiri@macports.org $

PortSystem          1.0

name                lz4
version             r116
categories          archivers
maintainers         mfeiri openmaintainer
license             BSD GPL-2
homepage            https://code.google.com/p/lz4/
description         Extremely Fast Compression algorithm
long_description    LZ4 is a very fast lossless compression algorithm, \
                    providing compression speed at 400 MB/s per core, \
                    scalable with multi-cores CPU. It also features an \
                    extremely fast decoder, with speed in multiple GB/s per \
                    core, typically reaching RAM speed limits on multi-core \
                    systems. 

master_sites        https://dl.dropboxusercontent.com/u/59565338/LZ4
checksums           rmd160  974cb8e9b0e2c1d951687763ef06130c16768146 \
                    sha256  1abafe7a9a0c203043a8abb852aceec947e45c81413394f8711946982c1bad35

use_configure       no

variant universal {}
build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" PREFIX=${prefix}
destroot.args-append CC="${configure.cc} [get_canonical_archflags cc]" PREFIX=${prefix}

livecheck.url http://code.google.com/p/${name}/source/list
livecheck.type regex
livecheck.regex {<td class="id"><a href="detail\?r=.*">(.*)</a></td>}

