# $Id: Portfile,v 1.13 2006/02/11 14:00:00 olegb Exp $

PortSystem 1.0
name		zlib
version		1.2.3
categories	archivers
maintainers	landonf@opendarwin.org
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.
homepage	http://www.zlib.net/
platforms	darwin

master_sites	${homepage} http://www.gzip.org/zlib/ \
				sourceforge:libpng

use_bzip2	yes
checksums	md5 dee233bf288ee795ac96a98cc2e369b6

configure.args	--shared

test.run	yes

destroot.destdir prefix=${destroot}${prefix}

post-destroot {
	system "cd ${worksrcpath} && ./configure"
	system "cd ${worksrcpath} && make"
	xinstall ${worksrcpath}/libz.a ${destroot}${prefix}/lib
}
