# $Id$

PortSystem          1.0

name                moc
version             2.4.4
revision            2
categories          multimedia
maintainers         martinvazquez.net:eu
description         MOC (music on console) is a console audio player for LINUX/UNIX
long_description    MOC (music on console) is a console audio player for LINUX/UNIX \
                    designed to be powerful and easy to use. \
                    Internet stream (Icecast, Shoutcast) are supported, \
                    key mapping can be fully customized. \
                    Supported file formats are: mp3, Ogg Vorbis, FLAC, Musepack, Speex, WAVE, \
                    AIFF, AU (and other less popular formats supported by libsndfile. New formats \
                    support is under development.

homepage            http://moc.daper.net
platforms           darwin
master_sites        ftp://ftp.daper.net/pub/soft/moc/stable/

checksums           md5     647c770a5542a4ae5437386807a89796 \
                    sha1    e56ee13aa17c177f0afc42efe3804ebbbf46d4db \
                    rmd160  d757650b3d8ed4f830212f41d12af7144ecba29b

use_bzip2           yes

depends_lib         port:libiconv \
                    port:ncurses \
                    path:lib/libavcodec.dylib:ffmpeg \
                    port:libmad \
                    port:mpc \
                    port:libid3tag \
                    port:libsamplerate \
                    path:lib/libspeex.dylib:speex \
                    port:flac \
                    port:jack \
                    port:curl

patchfiles          patch-configure.diff \
                    patch-options.c.diff

configure.args      --with-jack --without-vorbis

default_variants    +autojack

variant autojack description {Autostart jack on mocp init and close it on server stop} {
        patchfiles-append       patch-autojack.diff
}

variant vorbis description {Add support for ogg files} {
        depends_lib-append      port:libvorbis
        configure.args-delete   --without-vorbis
}