# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                daaplib
version             0.1.1a
checksums           md5     038df4ac53780074e6e642a6e928f4fb \
                    rmd160  03143525e25f13b3da5d06e4002952e449700846 \
                    sha256  c5db7126f03049722a5325b0eb71b64108301de52c1fb23de6e12c41943e8d0b \
                    size    26059

categories          devel net
platforms           darwin
maintainers         nomaintainer
license             LGPL-2.1+

description         small library for reading and writing 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 \
                    used by iTunes for sharing songs.

homepage            https://web.archive.org/web/20130623073811/http://www.deleet.de/projekte/daap/daaplib/
master_sites        https://web.archive.org/web/20070205180003/http://www.deleet.de/projekte/daap/daaplib/
use_zip             yes
distname            ${name}.${version}

build.dir           ${worksrcpath}/daaplib/src

configure {
    reinplace "s|/usr/local|${destroot}${prefix}|g" ${build.dir}/makefile
}

build.target

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} COPYING README ${destroot}${docdir}
}
