# -*- 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                moc
version             2.6-alpha1
revision            10
license             GPL-2
categories          multimedia
maintainers         nomaintainer
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
master_sites        http://ftp.daper.net/pub/soft/moc/unstable/

checksums           rmd160  283f9945abbd3b3d4e15f23485228c00983edfe8 \
                    sha256  0b0a3515c65b4c47a250e350c663535778239352db859921f5d564ed727a0bbc \
                    size    491660

use_xz              yes

configure.cflags-append \
                    -D_DARWIN_C_SOURCE

depends_build       port:pkgconfig

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:taglib \
                    port:flac \
                    port:jack \
                    port:faad2 \
                    port:curl

patchfiles          patch-ffmpeg-3.0.diff \
                    patch-ffmpeg-4.0.diff

use_autoreconf      yes
autoreconf.args     -fvi

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

#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
}

livecheck.regex     ">${name}-\(\.*\)\.tar"
