# Template file for 'dssi-vst'
pkgname=dssi-vst
version=0.9.2.20131028
revision=3
hostmakedepends="pkg-config git"
makedepends="zlib-devel jack-devel alsa-lib-devel liblo-devel
 dssi-devel ladspa-sdk wine wine-devel"
depends="dssi ladspa-sdk ladspa-sdk-progs wine"
short_desc="Run Windows VST plugins on Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL"
homepage="http://breakfastquay.com/dssi-vst/"

only_for_archs=i686

do_fetch() {
	local url="git://github.com/falkTX/dssi-vst.git"
	msg_normal " Fetching source from $url ...\n"
	git clone ${url} ${pkgname}-${version}
}

do_configure() {
	sed -i -e "s|/usr/local|/usr|" Makefile
	sed -i -e 's/LINK_FLAGS   =/& -pthread -lrt/' Makefile
}

do_build() {
	make ${makejobs} DESTDIR=${DESTDIR}
}

do_install() {
	make ${makejobs} DESTDIR=${DESTDIR} install
}