Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (53 sloc) 2.28 KB
# -*- 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
PortSystem 1.0
PortGroup xcodeversion 1.0
name zlib
version 1.2.11
categories archivers
maintainers ryandesign openmaintainer
license zlib
homepage http://www.zlib.net/
platforms darwin freebsd
description zlib lossless data-compression library
long_description zlib is designed to be a free, general-purpose, \
legally unencumbered, lossless data-compression \
library for use on virtually any computer hardware \
and operating system.
master_sites ${homepage}
use_xz yes
checksums rmd160 3f3ecd35efa6d41ba7b90e5f6e872e2ee8e42044 \
sha256 4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066
minimum_xcodeversions {8 2.4.1 9 3.1}
configure.universal_args
use_parallel_build yes
test.run yes
destroot.destdir prefix=${destroot}${prefix}
if {${name} eq ${subport}} {
post-destroot {
platform darwin {
foreach {neededfile} "${prefix}/lib/libz.dylib" {
if {![file exists ${destroot}${neededfile}]} {
ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
return -code error "missing ${neededfile} in destroot"
}
}
}
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README zlib.3.pdf ${destroot}${docdir}
set examplesdir ${prefix}/share/examples/${name}
xinstall -d ${destroot}${examplesdir}
xinstall -m 0644 {*}[glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
subport minizip {
description Minizip zip file manipulation library
long_description ${description}
worksrcdir ${worksrcdir}/contrib/minizip
use_autoreconf yes
autoreconf.args -fvi -I m4
depends_lib-append port:zlib
}
You can’t perform that action at this time.