1 | # $Id: Portfile 64716 2010-03-15 11:22:23Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name zlib |
---|
6 | version 1.2.4 |
---|
7 | revision 1 |
---|
8 | categories archivers |
---|
9 | maintainers landonf ryandesign openmaintainer |
---|
10 | license zlib |
---|
11 | homepage http://www.zlib.net/ |
---|
12 | platforms darwin freebsd |
---|
13 | use_bzip2 yes |
---|
14 | |
---|
15 | description zlib lossless data-compression library |
---|
16 | |
---|
17 | long_description zlib is designed to be a free, general-purpose, \ |
---|
18 | legally unencumbered, lossless data-compression \ |
---|
19 | library for use on virtually any computer hardware \ |
---|
20 | and operating system. |
---|
21 | |
---|
22 | master_sites ${homepage} \ |
---|
23 | http://www.gzip.org/zlib/ |
---|
24 | |
---|
25 | checksums md5 763c6a0b4ad1cdf5549e3ab3f140f4cb \ |
---|
26 | sha1 8cf10521c1927daa5e12efc5e1725a0d70e579f3 \ |
---|
27 | rmd160 8f0f17e33e36fa1427f8186b6d12cf5b2240294a |
---|
28 | |
---|
29 | default_variants +patchzlib |
---|
30 | |
---|
31 | variant patchzlib description {Patch zlib for LARGEFILE64_SOURCE issue} { |
---|
32 | patchfiles-append patch-zconf.h.in.diff |
---|
33 | } |
---|
34 | |
---|
35 | configure.universal_args |
---|
36 | |
---|
37 | # Respect build_arch |
---|
38 | if {![variant_isset universal]} { |
---|
39 | configure.ldflags-append ${configure.cc_archflags} |
---|
40 | } |
---|
41 | |
---|
42 | use_parallel_build yes |
---|
43 | |
---|
44 | test.run yes |
---|
45 | |
---|
46 | destroot.destdir prefix=${destroot}${prefix} |
---|
47 | |
---|
48 | post-destroot { |
---|
49 | set docdir ${prefix}/share/doc/${name} |
---|
50 | xinstall -d ${destroot}${docdir} |
---|
51 | xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README zlib.3.pdf ${destroot}${docdir} |
---|
52 | |
---|
53 | set examplesdir ${prefix}/share/examples/${name} |
---|
54 | xinstall -d ${destroot}${examplesdir} |
---|
55 | eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir} |
---|
56 | } |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url ${homepage} |
---|
60 | livecheck.regex ${name}-(\[0-9.\]+)\\.tar |
---|