source: trunk/dports/archivers/zlib/Portfile

Last change on this file was 142698, checked in by landonf@…, 20 months ago

Drop maintainership of (almost) all my ports, as I'm no longer using Mac OS X as my desktop OS.

The dict port here dates back to ~2002; it was the first port used as a test case when we were developing MacPorts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 142698 2015-11-20 16:55:09Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               xcodeversion 1.0
6
7name                    zlib
8version                 1.2.8
9categories              archivers
10maintainers             ryandesign openmaintainer
11license                 zlib
12homepage                http://www.zlib.net/
13platforms               darwin freebsd
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}
23use_xz                  yes
24
25checksums               rmd160  2675993cab2db4a1eb69beb885c118e87bf86c64 \
26                        sha256  831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057
27
28patchfiles              patch-configure-clang.diff
29patch.pre_args          -p1
30
31minimum_xcodeversions   {8 2.4.1 9 3.1}
32
33configure.universal_args
34
35use_parallel_build      yes
36
37test.run                yes
38
39destroot.destdir        prefix=${destroot}${prefix}
40
41post-destroot {
42    platform darwin {
43        foreach {neededfile} "${prefix}/lib/libz.dylib" {
44            if {![file exists ${destroot}${neededfile}]} {
45                ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
46                return -code error "missing ${neededfile} in destroot"
47            }
48        }
49    }
50   
51    set docdir ${prefix}/share/doc/${name}
52    xinstall -d ${destroot}${docdir}
53    xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README zlib.3.pdf ${destroot}${docdir}
54   
55    set examplesdir ${prefix}/share/examples/${name}
56    xinstall -d ${destroot}${examplesdir}
57    xinstall -m 0644 {*}[glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
58}
59
60livecheck.type          regex
61livecheck.url           ${homepage}
62livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.