# -*- 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
# $Id: Portfile 57378 2009-09-10 08:38:23Z ryandesign@macports.org $

PortSystem          1.0

name                despotify
version             20090307
categories          multimedia
maintainers         carljohancrafoord.se:mail
description         Open source Spotify client
long_description    An open source Spotify client and gateway to their service
homepage            http://despotify.se/

platforms           darwin
depends_lib         port:ncurses \
                    port:openssl \
                    port:zlib \
                    port:libvorbis \
                    port:expat

fetch.type          svn
svn.url             https://despotify.svn.sourceforge.net/svnroot/despotify/src
svn.revision        164

worksrcdir          src

patchfiles          patch-Makefile.diff \
                    patch-Makefile.local.mk.dist.diff \
                    patch-clients-despotify-local.mk.diff \
                    patch-lib-local.mk.diff

post-patch {
    reinplace s|@PREFIX@|${prefix}|g \
        ${worksrcpath}/Makefile.local.mk.dist \
        ${worksrcpath}/clients/despotify/local.mk \
        ${worksrcpath}/lib/local.mk
}

use_configure       no

pre-destroot {
    reinplace s|@DESTROOT@|${destroot}|g \
        ${worksrcpath}/clients/despotify/local.mk \
        ${worksrcpath}/lib/local.mk
}
