# Template file for 'ncmpcpp'
pkgname=ncmpcpp
version=0.10.1
revision=5
build_style=gnu-configure
configure_args=" --enable-clock --enable-outputs --enable-unicode
 boost_cv_lib_system=yes boost_cv_lib_date_time=yes
 boost_cv_lib_regex=yes
 --with-boost=$XBPS_CROSS_BASE/usr/include
 --enable-visualizer --with-curl --with-taglib --with-fftw"
hostmakedepends="automake libtool pkg-config"
makedepends="boost-devel-minimal
 fftw-devel icu-devel libcurl-devel libltdl-devel
 libmpdclient-devel readline-devel taglib-devel"
short_desc="Ncurses mpd client inspired by ncmpc"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://rybczak.net/ncmpcpp"
distfiles="https://github.com/ncmpcpp/ncmpcpp/archive/refs/tags/${version}.tar.gz"
checksum=ddc89da86595d272282ae8726cc7913867b9517eec6e765e66e6da860b58e2f9

# Required by waddwstr() with ncurses on musl
CXXFLAGS="-D_XOPEN_SOURCE=600"

pre_configure() {
	autoreconf -fiv
}

post_install() {
	vsconf doc/bindings
	vsconf doc/config
}
