# Template file for 'SDL2_mixer'
pkgname=SDL2_mixer
version=2.8.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="SDL2-devel libvorbis-devel libmikmod-devel libflac-devel
 libmodplug-devel mpg123-devel smpeg2-devel fluidsynth-devel opusfile-devel"
# The following deps are dlopen(3)ed at runtime.
depends="libvorbis libmikmod libmpg123 libmodplug libflac smpeg2 opusfile"
short_desc="Multi-channel audio mixer library (SDL 2.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.libsdl.org/projects/SDL_mixer/"
distfiles="https://www.libsdl.org/projects/SDL_mixer/release/${pkgname}-${version}.tar.gz"
checksum=938dff531d00ace2296557a6599abe6f34599e2f34f0a4a08a397e2ccac8b8f7

post_install() {
	vlicense LICENSE.txt
}

SDL2_mixer-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove "usr/lib/*.a"
	}
}
