# -*- 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
PortGroup           boost 1.0
PortGroup           github 1.0

# Boost 1.76 has a bug which breaks builds with modern gcc.
# configure: error: cannot find boost/math/special_functions.hpp
# This happens due to the following error:
# /opt/local/include/gcc13/c++/utility: error: '__and_' was not declared in this scope; did you mean 'std::__and_'?
boost.version       1.81

github.setup        ncmpcpp ncmpcpp 0.10.1
revision            1
checksums           rmd160  f7ff8ac8b81e79bb9ad5799222869cbc82f93d71 \
                    sha256  ddc89da86595d272282ae8726cc7913867b9517eec6e765e66e6da860b58e2f9 \
                    size    231032
github.tarball_from archive

categories          audio
maintainers         nomaintainer
description         an ncurses mpd client inspired by ncmpc
long_description    Ncmpcpp has UI very similar to ncmpc's one, but it provides new useful \
                    features such as support for regular expressions in search engine, \
                    extended song format, items filtering, last.fm support, ability to \
                    sort playlist, local filesystem browser and other minor functions.
homepage            https://rybczak.net/ncmpcpp/
license             GPL-2+

use_autoreconf      yes

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:curl \
                    path:lib/pkgconfig/icu-uc.pc:icu \
                    port:libmpdclient \
                    port:ncurses \
                    port:readline \
                    port:taglib

compiler.cxx_standard 2020

configure.args      --with-boost=[boost::install_area] \
                    --with-taglib=${prefix} \
                    --without-fftw

variant visualizer description "Enable Visualizer" {
    depends_lib-append      port:fftw-3
    configure.args-replace  --without-fftw --with-fftw=${prefix}
    configure.args-append   --enable-visualizer
}
