# Template file for 'audacious-plugins'
#Keep in sync with audacious!
pkgname=audacious-plugins
version=4.3.1
revision=3
build_style=meson
configure_args="$(vopt_bool gtk3 gtk) $(vopt_bool gtk3)
 $(vopt_bool qt) $(vopt_bool qt qt6)"
hostmakedepends="gettext pkg-config glib-devel $(vopt_if qt qt6-tools)"
makedepends="audacious-devel alsa-lib-devel pulseaudio-devel jack-devel
 lame-devel libvorbis-devel libflac-devel mpg123-devel faad2-devel ffmpeg-devel
 libmodplug-devel fluidsynth-devel libcdio-paranoia-devel wavpack-devel libnotify-devel
 libcurl-devel libmtp-devel neon-devel libmms-devel libxml2-devel opus-devel opusfile-devel
 libbs2b-devel libsoxr-devel libsidplayfp-devel libcue-devel libopenmpt-devel pipewire-devel
 $(vopt_if gtk3 gtk+3-devel) $(vopt_if qt 'qt6-base-devel qt6-multimedia-devel')"
short_desc="Plugins for the Audacious media player"
maintainer="classabbyamp <void@placeviolette.net>"
license="BSD-2-Clause"
homepage="https://audacious-media-player.org/"
distfiles="https://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2"
checksum=2dea26e3af583a2d684df240b27b2b2932bcd653df4db500a85f4fe5d5fdc8a6

build_options="gtk3 qt"
build_options_default="qt"
vopt_conflict gtk3 qt

if [ -n "$CROSS_BUILD" ]; then
	# fails to configure: FileNotFoundError: [Errno 2] No such file or directory: '/usr/include/qt6'
	configure_args+=" -Dhotkey=false"
fi

post_install() {
	vlicense COPYING
}
