# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils subversion ESVN_REPO_URI="svn://svn.berlios.de/bmpx/trunk" ESVN_BOOTSTRAP="autogen.sh" DESCRIPTION="the next-generation BMP" HOMEPAGE="http://www.sosdg.org/~larne/w/BMPx" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="xine gstreamer dbus" DEPEND=">=x11-libs/gtk+-2.8 >=x11-libs/cairo-0.9 >=media-libs/taglib-1.3.1 xine? (>=media-libs/xine-lib-1.0.1) gstreamer? (>=media-libs/gstreamer-0.9.1) >=gnome-base/libglade-2.5.1 dbus? (>=sys-apps/dbus-0.35) >=app-admin/gamin-0.1.5" RDEPEND="${DEPEND}" src_unpack() { subversion_src_unpack; if (use !xine && use !gstreamer) || (use xine && use gstreamer); then eerror "Need either xine or gstreamer as backend" die "See above" fi } src_compile() { local myconf= myconf="${myconf} $(use_enable xine)" myconf="${myconf} $(use_enable gstreamer gst)" myconf="${myconf} $(use_enable dbus)" econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "install failed" }