# -*- 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 82139 2011-08-08 15:21:28Z ryandesign@macports.org $

PortSystem              1.0

name                    shell-fm
version                 0.8
categories              audio
platforms               darwin
maintainers             fawong.com:waf
license                 GPL-2

homepage                https://github.com/jkramer/shell-fm
master_sites            ${homepage}/tarball/v${version}

description             Console-based last.fm player

long_description        shell-fm is a lightweight, console-based player for Last.FM radio streams. \
                        It’s pretty small \
                        and it has most features the “official” player has, if not even a few more. \
                        \
                        Additional features are, for example: \
                        network interface (control shell-fm remotely) \
                        autoban (automatically ban all tracks of an artist you don’t like) \
                        bookmark stations (quickly jump to bookmarked stations with a single key) \
                        ... probably more

depends_build           port:pkgconfig

depends_lib             port:libao \
                        port:taglib \
                        port:libmad

checksums               sha1    ad35391489a4c5b216740a543f6cb46285f556c7 \
                        rmd160  1d9b53c03156b44717365c43dd6d95cea7145ca0

post-extract {
    move [glob ${workpath}/*] ${worksrcpath}
}

patchfiles              patch-Makefile.diff \
                        patch-source-sckif.c.diff

use_configure           no

build.args              PREFIX=${prefix} CC="${configure.cc} ${configure.cc_archflags}"
destroot.args           PREFIX=${prefix}

livecheck.type          regex
livecheck.url           ${homepage}/downloads
livecheck.regex         {tarball/v([0-9.]+)"}
