# Template file for 'pd'
pkgname=pd
version=0.48.2
revision=1
_ver=${version%.*}-${version##*.}
wrksrc="$pkgname-$_ver"
build_style=gnu-configure
configure_args="--enable-alsa --enable-jack --disable-portaudio --enable-fftw"
hostmakedepends="automake libtool pkg-config"
makedepends="alsa-lib-devel jack-devel tk-devel fftw-devel"
depends="tk"
short_desc="The Pure Data real-time music and multimedia environment"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD-3-Clause"
homepage="http://msp.ucsd.edu/software.html"
distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
checksum=681be08494b9f29ba00e01d9f5b2adc6fa989e139071b1cf2034cfff9885065d

pre_configure() {
	./autogen.sh
}

post_install() {
	vlicense LICENSE.txt
}

pd-devel_package() {
	depends="pd>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share
	}
}
