# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit cvs eutils flag-o-matic DESCRIPTION="free alternative to popular programs such as FruityLoops, Cubase and Logic" HOMEPAGE="http://lmms.sourceforge.net" ECVS_SERVER="cvs.sourceforge.net:/cvsroot/lmms" ECVS_MODULE="lmms" LICENSE="GPL-2" SLOT="0" KEYWORDS="-*" IUSE="alsa oggvorbis sdl samplerate jack vst" DEPEND=">=x11-libs/qt-3.2.0 oggvorbis? ( media-libs/libvorbis ) alsa? ( media-libs/alsa-lib ) sdl? ( media-libs/libsdl >=media-libs/sdl-sound-1.0.1 ) samplerate? ( media-libs/libsamplerate ) jack? ( >=media-sound/jack-audio-connection-kit-0.99.0 ) vst? ( >=app-emulation/wine-0.9.1 )" pkg_setup() { if use vst; then if [ ! -r /usr/include/vst/AEffect.h -a ! -r /usr/include/vst/aeffectx.h ]; then ewarn "" ewarn "To compile LMMS with VST support, you need" ewarn "the vstsdk development headers from Steinberg." ewarn "You can get them at" ewarn "http://www.steinberg.de/DocSupportDisplay_sbf02f.html" ewarn "Then copy the two needed headers to /usr/include/vst:" ewarn "" ewarn "mkdir /usr/include/vst" ewarn "cp vstsdk2.3/source/common/AEffect.h /usr/include/vst" ewarn "cp vstsdk2.3/source/common/aeffectx.h /usr/include/vst" die fi fi } src_compile() { cd "${S}" libtoolize --copy --force econf \ `use_enable alsa asound` \ `use_enable oggvorbis vorbis` \ `use_enable samplerate` \ `use_enable sdl` \ `use_enable sdl sdlsound`\ `use_enable jack` \ `use_enable vst` \ "--enable-hqsinc" || die "Configure failed" emake || die "Make failed" } src_install() { make DESTDIR="${D}" install || die "Install failed" make_desktop_entry lmms "Linux Multimedia Studio" "/usr/share/lmms/icon.png" dodoc README AUTHORS ChangeLog TODO || die "dodoc failed" }