# $Id: Portfile,v 1.3 2004/01/26 23:29:48 mww Exp $

PortSystem 1.0
name		daaplib
version		0.1.1a
categories	devel net
maintainers	mww@opendarwin.org
description	small library for reading and writingg DAAP streams
long_description	daaplib is a very tiny and portable C++ library which \
			helps to read and write low-level DAAP streams in \
			memory. The code is straightforward and can mirror the \
			structure of the data fairly well. DAAP streams are \
			use by iTunes for sharing songs.

homepage	http://www.deleet.de/projekte/daap/daaplib/
master_sites	${homepage}
use_zip		yes
extract.suffix	.zip
distfiles	${name}.${version}${extract.suffix}
checksums	md5 038df4ac53780074e6e642a6e928f4fb

post-extract	{
	file rename ${workpath}/daaplib.${version}/daaplib/src ${worksrcpath}
	file rename ${workpath}/daaplib.${version}/daaplib/include \
		${workpath}/include
}

configure	{
	reinplace "s|/usr/local|${destroot}${prefix}|g" ${worksrcpath}/makefile
}

build.target

post-destroot	{
	file mkdir ${destroot}${prefix}/share/doc/${name}
	file copy ${workpath}/daaplib.${version}/README \
		${workpath}/daaplib.${version}/COPYING \
		${destroot}${prefix}/share/doc/${name}
}
