# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="free alternative to popular programs such as FruityLoops, Cubase and Logic" HOMEPAGE="http://lmms.sourceforge.net" SRC_URI="mirror://sourceforge/lmms/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" S=${WORKDIR}/${P} IUSE="alsa flac ladspa oggvorbis oss sdl samplerate jack" 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 ) flac? ( media-libs/flac ) ladspa? ( media-libs/ladspa-sdk )" src_compile() { econf \ `use_enable alsa asound` \ `use_enable flac` \ `use_enable ladspa` \ `use_enable oggvorbis vorbis` \ `use_enable samplerate` \ `use_enable oss` \ `use_enable sdl` \ `use_enable sdl sdlsound`\ `use_enable jack` \ "--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" }