# $Id: Portfile,v 1.26 2004/05/18 01:58:28 mww Exp $

PortSystem 1.0
name		libfetch
version		4.6.2-RELEASE
revision	1
categories	net
maintainers	eric@opendarwin.org
description	FreeBSD file fetching library
platforms	darwin
use_bzip2	yes
master_sites	opendarwin
checksums	md5 81e390ad3bf8309f65c923a0c034e841
patchfiles	patch-Makefile patch-http.c
build.type	bsd
worksrcdir	${portname}
use_configure	no
set libver	3
build.env	LDADD=-install_name\\ ${prefix}/lib/libfetch.${libver}.dylib
destroot	{ cd ${workpath}/${worksrcdir}
		xinstall -m 644 -c libfetch.${libver}.dylib \
			${destroot}${prefix}/lib
		system "ln -sf libfetch.3.dylib ${destroot}${prefix}/lib/libfetch.dylib"
		xinstall -m 644 -c fetch.h ${destroot}${prefix}/include
		xinstall -m 644 -c fetch.3 ${destroot}${prefix}/share/man/man3 }

