|
Revision 42636, 1.5 KB
(checked in by ryandesign@…, 6 weeks 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
|
| Line | |
|---|
| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name zlib |
|---|
| 6 | version 1.2.3 |
|---|
| 7 | revision 2 |
|---|
| 8 | categories archivers |
|---|
| 9 | maintainers landonf@macports.org ryandesign \ |
|---|
| 10 | openmaintainer |
|---|
| 11 | description zlib lossless data-compression library |
|---|
| 12 | long_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. |
|---|
| 17 | homepage http://www.zlib.net/ |
|---|
| 18 | platforms darwin freebsd |
|---|
| 19 | use_parallel_build yes |
|---|
| 20 | |
|---|
| 21 | master_sites ${homepage} http://www.gzip.org/zlib/ \ |
|---|
| 22 | sourceforge:libpng |
|---|
| 23 | |
|---|
| 24 | use_bzip2 yes |
|---|
| 25 | checksums md5 dee233bf288ee795ac96a98cc2e369b6 \ |
|---|
| 26 | sha1 967e280f284d02284b0cd8872a8e2e04bfdc7283 \ |
|---|
| 27 | rmd160 cfba9984b354dcc38da49331457e6bfc861c6f51 |
|---|
| 28 | |
|---|
| 29 | patchfiles patch-Makefile-static.diff |
|---|
| 30 | |
|---|
| 31 | post-configure { |
|---|
| 32 | if {[variant_isset universal]} { |
|---|
| 33 | reinplace -E "/^LDSHARED=/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile |
|---|
| 34 | } |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | configure.args --shared |
|---|
| 38 | configure.universal_args |
|---|
| 39 | |
|---|
| 40 | test.run yes |
|---|
| 41 | |
|---|
| 42 | destroot.destdir prefix=${destroot}${prefix} |
|---|
| 43 | |
|---|
| 44 | post-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 | |
|---|
| 54 | livecheck.check regex |
|---|
| 55 | livecheck.url ${homepage} |
|---|
| 56 | livecheck.regex ${name}-(\[0-9.\]+)\\.tar |
|---|