# Template file for 'cantata'
pkgname=cantata
version=3.3.1
revision=1
build_style=cmake
configure_args="-DENABLE_HTTP_STREAM_PLAYBACK=ON -DENABLE_LIBVLC=OFF
 -DENABLE_SIMPLE_MPD_SUPPORT=ON"
hostmakedepends="pkg-config qt6-tools qt6-base"
makedepends="qt6-multimedia-devel qt6-svg-devel"
depends="media-player-info avahi qt6-multimedia qt6-svg libmtp libcddb libmusicbrainz5 mpg123 udisks2"
short_desc="Qt client for the music player daemon (MPD)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/nullobsi/cantata"
distfiles="https://github.com/nullobsi/cantata/archive/refs/tags/v${version}.tar.gz"
checksum=e811201adfedca26d8c6a86078213de9e26411db77082f739a225a531ca38bbf

CXXFLAGS="-Wno-error=sign-compare"

case "$XBPS_TARGET_MACHINE" in
	aarch64*)
		CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt6" ;;
esac
