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

# 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-lib32 libjack2_32 libreadline32 libsndfile32' # 
SLACKDESC='fluidsynth32: fluidsynth32 1.1.6debian2 (MIDI synthesizer)  
fluidsynth32:  
fluidsynth32: Fluidsynth is a real-time midi synthesizer based on the soundfont2 
fluidsynth32: specifications. It can be used to render MIDI input or MIDI files 
fluidsynth32: to audio. The MIDI events are read from a MIDI device. The sound 
fluidsynth32: is rendered in real-time to the sound output device.  
fluidsynth32: 
fluidsynth32: This contains 32-bit version of the library.
fluidsynth32: 
fluidsynth32: 
fluidsynth32:
'

### 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
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### 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
}
