Ticket #24067: Portfile

File Portfile, 1.9 KB (added by gellule.xg@…, 14 years ago)

Portfile with patch-zconf.h.in.diff patch and patchzlib variant set as default

Line 
1# $Id: Portfile 64716 2010-03-15 11:22:23Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    zlib
6version                 1.2.4
7revision                1
8categories              archivers
9maintainers             landonf ryandesign openmaintainer
10license                 zlib
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
25checksums               md5     763c6a0b4ad1cdf5549e3ab3f140f4cb \
26                        sha1    8cf10521c1927daa5e12efc5e1725a0d70e579f3 \
27                        rmd160  8f0f17e33e36fa1427f8186b6d12cf5b2240294a
28
29default_variants        +patchzlib
30
31variant patchzlib description {Patch zlib for LARGEFILE64_SOURCE issue} {
32    patchfiles-append patch-zconf.h.in.diff
33}
34
35configure.universal_args
36
37# Respect build_arch
38if {![variant_isset universal]} {
39    configure.ldflags-append ${configure.cc_archflags}
40}
41
42use_parallel_build      yes
43
44test.run                yes
45
46destroot.destdir        prefix=${destroot}${prefix}
47
48post-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
58livecheck.type          regex
59livecheck.url           ${homepage}
60livecheck.regex         ${name}-(\[0-9.\]+)\\.tar