### this file is sourced not run
PKGVER=1.1.6debian2
PKGBUILD=1
PKGARCH=x86_64

# source: james/debian
TARBALL=fluidsynth_1.1.6.orig.tar.bz2
MD5SUM=f6e696690e989098f70641364fdffad7
SRC_URL=http://ftp.de.debian.org/debian/pool/main/f/fluidsynth/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib libjack2 libreadline libsndfile' # 
SLACKDESC='fluidsynth: fluidsynth 1.1.6debian2 (MIDI synthesizer)  
fluidsynth:  
fluidsynth: Fluidsynth is a real-time midi synthesizer based on the soundfont2 
fluidsynth: specifications. It can be used to render MIDI input or MIDI files 
fluidsynth: to audio. The MIDI events are read from a MIDI device. The sound 
fluidsynth: is rendered in real-time to the sound output device.  
fluidsynth: 
fluidsynth: 
fluidsynth: 
fluidsynth: 
fluidsynth:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cp $CHROOT_DIR/tmp/pkg/ladspa.h usr/include &&
	cd tmp/fluidsynth* &&
	tar -xf $CHROOT_DIR/tmp/pkg/fluidsynth_1.1.6-2.debian.tar.gz &&
	for p in $(cat debian/patches); do 
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static \
		--disable-dbus-support --disable-portaudio-support --enable-ladspa"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	rm -f /usr/include/ladspa.h
}
