source: trunk/dports/archivers/lz4/Portfile

Last change on this file was 152309, checked in by mcalhoun@…, 13 months ago

lz4: fix universal build (#47659)
no revbump since port builds successfully or not at all

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 152309 2016-09-03 11:03:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           muniversal 1.0
7
8github.setup        Cyan4973 lz4 r131
9master_sites        ${homepage}/archive
10distfiles           ${version}${extract.suffix}
11checksums           rmd160  4a76a20739a4842bbbc6435c460e52b0a32f0540 \
12                    sha256  9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed
13
14categories          archivers
15maintainers         mfeiri openmaintainer
16license             BSD GPL-2+
17
18description         Extremely Fast Compression algorithm
19long_description    LZ4 is a very fast lossless compression algorithm, \
20                    providing compression speed at 400 MB/s per core, \
21                    scalable with multi-cores CPU. It also features an \
22                    extremely fast decoder, with speed in multiple GB/s per \
23                    core, typically reaching RAM speed limits on multi-core \
24                    systems.
25
26homepage            http://www.lz4.org/
27patchfiles          patch-lib-Makefile.diff
28use_configure       no
29
30build.args-append    PREFIX=${prefix}
31destroot.args-append PREFIX=${prefix}
32
33if { ![variant_isset universal] } {
34    build.args-append    CC="${configure.cc} [get_canonical_archflags cc]"
35    destroot.args-append CC="${configure.cc} [get_canonical_archflags cc]"
36} else {
37    foreach arch ${configure.universal_archs} {
38        lappend merger_build_args(${arch})    CC='${configure.cc} -arch ${arch}'
39        lappend merger_destroot_args(${arch}) CC='${configure.cc} -arch ${arch}'
40    }
41}
Note: See TracBrowser for help on using the repository browser.