# Template file for 'furnace'
pkgname=furnace
version=0.6.2
revision=1
_adpcm_commit="ef7a217154badc3b99978ac481b268c8aab67bd8"
_adpcm_xq_commit="6220fed7655e86a29702b45dbc641a028ed5a4bf"
build_style=cmake
configure_args="-DSYSTEM_FFTW=ON -DSYSTEM_FMT=ON -DSYSTEM_LIBSNDFILE=ON -DSYSTEM_PORTAUDIO=ON -DSYSTEM_RTMIDI=ON
 -DSYSTEM_SDL2=ON -DSYSTEM_ZLIB=ON"
hostmakedepends="pkg-config"
makedepends="fftw-devel fmt-devel jack-devel libsndfile-devel portaudio-devel rtmidi-devel zlib-devel SDL2-devel"
short_desc="Multi-system chiptune tracker compatible with DefleMask modules"
maintainer="Marcin Puc <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
 https://github.com/dbry/adpcm-xq/archive/${_adpcm_xq_commit}.tar.gz"
checksum="e01df9ea9c5c625e7f3cbd59df34ab066be5b6d4e8675d445c62e4e1a5915476
 46da29342d2968ff222ba00e07c646e038b76af2e6c86de037c653059a056251
 601cf3905e7843f3d1477237a8ba358af08fa000ff8944651f40c986c7f57cff"

skip_extraction="
 ${_adpcm_commit}.tar.gz
 ${_adpcm_xq_commit}.tar.gz"

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