# $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign@macports.org $

PortSystem 1.0

name            daapd
version         0.2.4a
categories      audio net
platforms       darwin
maintainers     nomaintainer
description     A DAAP server emulating an iTunes server.
long_description    daapd scans a directory for music files (mp3, aac, \
            uncompressed) and makes them available via the Apple \
            proprietary protocol DAAP. DAAP clients can browse \
            the directory and retrieve individual files, either \
            by streaming or by downloading them.

homepage        http://www.deleet.de/projekte/daap/daapd/
master_sites    http://www.deleet.de/projekte/daap/daapd/
extract.suffix  .tgz
checksums       md5 330e2a89d77b086a64bbe8cdf24a00f2
patchfiles      patch-makefile patch-daapd.cc patch-daapd.8 patch-select.h

depends_lib     lib:libz:zlib \
            lib:libid3tag:libid3tag \
            lib:libhowl:howl

post-patch {
    reinplace s|@PREFIX@|${prefix}|g    ${worksrcpath}/daapd.cc \
                        ${worksrcpath}/makefile \
                        ${worksrcpath}/daapd.8
}

destroot {
    xinstall -m 755 ${worksrcpath}/daapd ${destroot}${prefix}/sbin/
    xinstall -m 644 ${worksrcpath}/daapd.conf ${destroot}${prefix}/etc/daapd.conf.dist
    xinstall -m 644 ${worksrcpath}/daapd.8 ${destroot}${prefix}/share/man/man8/
}

use_configure   no
