source: trunk/dports/archivers/pigz/Portfile @ 67156

Last change on this file since 67156 was 67156, checked in by ryandesign@…, 10 years ago

pigz: link with MacPorts zlib (#24727); support changing build_arch (#24728); add universal variant (#24729)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 67156 2010-04-30 11:23:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                pigz
6version             2.1.6
7revision            1
8categories          archivers
9platforms           darwin
10maintainers         gmail.com:danchr openmaintainer
11
12description         parallel gzip
13long_description    pigz, which stands for parallel implementation of gzip, \
14                    is a fully functional replacement for gzip that exploits \
15                    multiple processors and multiple cores to the hilt when \
16                    compressing data. pigz was written by Mark Adler, and \
17                    uses the zlib and pthread libraries.
18
19homepage            http://www.zlib.net/pigz/
20master_sites        ${homepage}
21
22checksums           md5     cbe9030c4be3d0ef2438ee5f8b169ca4 \
23                    sha1    df05bdcc7b08246a3c1e6a2ab2edc7d0a45c0369 \
24                    rmd160  715a90eefbb9d2f6dbd94ec7ee196a0ea7b32e7f
25
26depends_lib         port:zlib
27
28patchfiles          patch-Makefile
29
30use_configure       no
31
32build.target
33build.args          CC="${configure.cc}" \
34                    CFLAGS="${configure.cflags}" \
35                    CPPFLAGS="${configure.cppflags}" \
36                    LDFLAGS="${configure.ldflags}"
37
38variant universal {
39    build.args-append \
40                    CFLAGS+="${configure.universal_cflags}" \
41                    LDFLAGS+="${configure.universal_ldflags}"
42}
43if {![variant_isset universal]} {
44    build.args-append \
45                    CFLAGS+="${configure.cc_archflags}" \
46                    LDFLAGS+="${configure.cc_archflags}"
47}
48
49destroot {
50    xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
51    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
52    ln -s ${name} ${destroot}${prefix}/bin/un${name}
53}
54
55livecheck.type      regex
56livecheck.url       ${homepage}
57livecheck.regex     {pigz-(\d+(?:\.\d+)*).tar.gz}
Note: See TracBrowser for help on using the repository browser.