# Template file for 'furnace'
pkgname=furnace
version=0.6.8.3
revision=2
_adpcm_commit="ef7a217154badc3b99978ac481b268c8aab67bd8"
build_style=cmake
configure_args="-DSYSTEM_FFTW=ON -DSYSTEM_FMT=ON -DSYSTEM_FREETYPE=ON
 -DSYSTEM_LIBSNDFILE=ON -DSYSTEM_PORTAUDIO=ON -DSYSTEM_RTMIDI=ON
 -DSYSTEM_SDL2=ON -DSYSTEM_ZLIB=ON"
hostmakedepends="pkg-config"
makedepends="fftw-devel fmt-devel freetype-devel jack-devel libsndfile-devel portaudio-devel rtmidi-devel zlib-devel SDL2-devel"
short_desc="Multi-system chiptune tracker compatible with DefleMask modules"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/tildearrow/furnace"
distfiles="https://github.com/tildearrow/furnace/archive/refs/tags/v${version}.tar.gz
 https://github.com/superctr/adpcm/archive/${_adpcm_commit}.tar.gz>adpcm-${_adpcm_commit}.tar.gz"
checksum="c54b93dc7211a8e86828ea6b436628920df7a7dc87b130b3752f2251f5466e9c
 46da29342d2968ff222ba00e07c646e038b76af2e6c86de037c653059a056251"

skip_extraction="
 adpcm-${_adpcm_commit}.tar.gz"

post_extract() {
	vsrcextract -C extern/adpcm adpcm-${_adpcm_commit}.tar.gz
}
