# Template file for 'fluidsynth'
pkgname=fluidsynth
version=1.1.6
revision=3
build_style=cmake
configure_args="-DLIB_SUFFIX="
hostmakedepends="pkg-config cmake"
makedepends="glib-devel jack-devel pulseaudio-devel readline-devel"
short_desc="Real-time software synthesizer based on the SoundFont 2 specifications"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://www.fluidsynth.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=50853391d9ebeda9b4db787efb23f98b1e26b7296dd2bb5d0d96b5bccee2171c
long_desc="
 Features
  Cross platform support (Linux, Mac OSX and Windows to name a few)
  SoundFont 2 support
  Realtime effect modulation using SoundFont 2.01 modulators
  Shared library which can be used in other programs
  Built in command line shell
  Playback of MIDI files"

libfluidsynth_package() {
	short_desc="${short_desc} - Runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

fluidsynth-devel_package() {
	depends="libfluidsynth>=${version}"
	short_desc="${short_desc} - Development files"
	pkg_install() {
        	vmove usr/include
        	vmove usr/lib/pkgconfig
	}
}

fluidsynth_package() {
	pkg_install() {
		vmove usr
	}
}
