source: trunk/dports/archivers/zlib/Portfile @ 49160

Last change on this file since 49160 was 49160, checked in by toby@…, 11 years ago

fix test

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 49160 2009-04-04 19:41:26Z toby@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5
6name                    zlib
7version                 1.2.3
8revision                2
9categories              archivers
10maintainers             landonf@macports.org ryandesign openmaintainer
11homepage                http://www.zlib.net/
12platforms               darwin freebsd
13use_bzip2               yes
14
15description             zlib lossless data-compression library
16
17long_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
22master_sites            ${homepage} \
23                        http://www.gzip.org/zlib/ \
24                        sourceforge:libpng
25
26checksums               md5     dee233bf288ee795ac96a98cc2e369b6 \
27                        sha1    967e280f284d02284b0cd8872a8e2e04bfdc7283 \
28                        rmd160  cfba9984b354dcc38da49331457e6bfc861c6f51
29
30patchfiles              patch-Makefile-static.diff patch-Makefile-test.diff
31
32configure.args          --shared
33configure.universal_args
34
35# configure script does not recognize --host option
36array set merger_host {
37    ppc                 ""
38    i386                ""
39    ppc64               ""
40    x86_64              ""
41}
42
43use_parallel_build      yes
44
45test.run                yes
46
47destroot.destdir        prefix=${destroot}${prefix}
48
49post-destroot {
50    set docdir ${prefix}/share/doc/${name}-${version}
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README ${destroot}${docdir}
53   
54    set examplesdir ${docdir}/examples
55    xinstall -d ${destroot}${examplesdir}
56    eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
57}
58
59livecheck.check         regex
60livecheck.url           ${homepage}
61livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.