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

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

zlib: In the interest of having fewer variants, delete the examples variant and instead always install the examples. They're just 168K and don't bring in any additional dependencies or distfiles.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 42636 2008-11-27 09:27:39Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            zlib
6version         1.2.3
7revision        2
8categories      archivers
9maintainers     landonf@macports.org ryandesign \
10                openmaintainer
11description     zlib lossless data-compression library
12long_description \
13        zlib is designed to be a free, general-purpose, \
14        legally unencumbered, lossless data-compression \
15        library for use on virtually any computer hardware \
16        and operating system.
17homepage        http://www.zlib.net/
18platforms       darwin freebsd
19use_parallel_build      yes
20
21master_sites    ${homepage} http://www.gzip.org/zlib/ \
22                                sourceforge:libpng
23
24use_bzip2       yes
25checksums       md5 dee233bf288ee795ac96a98cc2e369b6 \
26            sha1 967e280f284d02284b0cd8872a8e2e04bfdc7283 \
27            rmd160 cfba9984b354dcc38da49331457e6bfc861c6f51
28
29patchfiles      patch-Makefile-static.diff
30
31post-configure {
32    if {[variant_isset universal]} {
33        reinplace -E "/^LDSHARED=/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
34    }
35}
36
37configure.args  --shared
38configure.universal_args   
39
40test.run        yes
41
42destroot.destdir prefix=${destroot}${prefix}
43
44post-destroot {
45    set docdir ${prefix}/share/doc/${name}-${version}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README ${destroot}${docdir}
48
49    set examplesdir ${docdir}/examples
50    xinstall -d ${destroot}${examplesdir}
51    eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
52}
53
54livecheck.check regex
55livecheck.url   ${homepage}
56livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.