# $Id: Portfile,v 1.14 2004/01/18 03:44:39 toby Exp $

PortSystem 1.0
name			libwww
version			5.4.0
revision		1

categories		www
platforms		darwin

maintainers		landonf@opendarwin.org
description		The W3C WWW Reference Library

long_description	Libwww is a general-purpose Web API written in C for \
Unix and Windows (Win32).  With a highly extensible and layered API, \
it can accommodate many different types of applications including \
clients, robots, etc.

master_sites		http://www.w3.org/Library/Distribution/ \
			opendarwin::lt
distname		w3c-${portname}-${portversion}
extract.suffix		.tgz
distfiles-append	ltconfig13:lt ltmain13:lt
extract.only		${distname}${extract.suffix}
checksums		${distname}.tgz md5 c3734ca6caa405707e134cc8c6d7e422 \
			ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
			ltmain13 md5 e094ae92724c4015dbab97de151c2525

patchfiles		patch-configure
post-patch { system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
	     system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh" }

configure.args		--enable-shared --enable-static --with-zlib --with-ssl

variant expat	{	depends_build-append    lib:libexpat.0:expat
			configure.args-append	--with-expat
}
