# $Id: Portfile,v 1.10 2005/05/18 06:14:31 toby Exp $

PortSystem 1.0
name             libopendaap
version          0.4.0
categories       audio
maintainers      toby@opendarwin.org
description      library for connecting to iTunes shares
long_description \
	libopendaap is a library written in C which enables applications to \
	discover, and connect to, iTunes(R) music shares. Unlike all other \
	daap implementations, this library is able to connect to recent \
	iTunes shares which require a special authentication algorithm.
homepage         http://craz.net/programs/itunes/libopendaap.html
platforms        darwin
master_sites     http://craz.net/programs/itunes/files/
use_bzip2        yes
checksums        md5 4edf92ac18c6ab8c05be7a4eb64a8a8d

configure.args   --mandir=${prefix}/share/man

post-destroot {
	reinplace "s|#include \"config.h\"||" \
		${destroot}${prefix}/include/daap/portability.h
	reinplace "s|#include \"portability.h\"|#include <daap/portability.h>|" \
		${destroot}${prefix}/include/daap/client.h
}
