a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name daaplib
version 0.1.1a
categories devel net
maintainers nomaintainer@macports.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}
}