# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/FusionSound/FusionSound-1.1.1.ebuild,v 1.3 2009/06/05 21:27:06 ssuominen Exp $ EAPI=2 inherit autotools eutils DESCRIPTION="Audio sub system for multiple applications" HOMEPAGE="http://www.directfb.org/" SRC_URI="http://www.directfb.org/downloads/Core/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="alsa cddb ffmpeg mad oss timidity vorbis" RDEPEND=">=dev-libs/DirectFB-${PV} alsa? ( media-libs/alsa-lib ) timidity? ( media-libs/libtimidity media-sound/timidity++ ) vorbis? ( media-libs/libvorbis ) mad? ( media-libs/libmad ) cddb? ( media-libs/libcddb ) ffmpeg? ( >=media-video/ffmpeg-0.5 )" DEPEND="${RDEPEND} dev-util/pkgconfig sys-apps/sed" src_prepare() { epatch "${FILESDIR}"/${P}-gcc43.patch \ "${FILESDIR}"/${P}-ffmpeg.patch sed -i -e 's:-O3 -ffast-math -pipe::' configure.in \ || die "sed failed" AT_M4DIR="m4" eautoreconf } src_configure() { local myaudio="wave" use alsa && myaudio="${myaudio} alsa" use oss && myaudio="${myaudio} oss" # Lite is used only for tests or examples. # Tremor isn't there with latest libvorbis. econf \ --disable-dependency-tracking \ --without-lite \ --with-drivers="${myaudio}" \ --without-examples \ $(use_with timidity) \ --with-wave \ $(use_with vorbis) \ --without-tremor \ $(use_with mad) \ $(use_with cddb cdda) \ $(use_with ffmpeg) \ --with-playlist } src_install() { emake DESTDIR="${D}" htmldir=/usr/share/doc/${PF}/html \ install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README TODO }