# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $

inherit gnome2

S=${WORKDIR}/${P}
DESCRIPTION="RhythmBox - a media player for GNOME"
SRC_URI="http://www.rhythmbox.org/download/${P}.tar.gz"
HOMEPAGE="http://www.rhythmbox.org/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

RDEPEND=">=x11-libs/gtk+-2.0.0
	>=gnome-base/libgnomeui-2.0
	>=gnome-base/libglade-2.0
	>=gnome-base/gnome-panel-2.0	
	>=gnome-base/gnome-vfs-2.0
	>=gnome-base/libbonobo-2.0
	>=gnome-base/bonobo-activation-1.0.3
	>=gnome-base/libgnomecanvas-2.0
	>=media-libs/monkey-media-0.5.0
	>=gnome-base/gconf-1.1.10
	>=gnome-base/ORBit2-2.4.0
	>=sys-devel/gettext-0.11.1
	>=media-libs/gst-plugins-0.4.0"

DEPEND="${RDEPEND}
	>=dev-util/pkgconfig-0.12.0
	dev-util/intltool"

LIBTOOL_FIX="1"

DOC="AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO"
SCHEMA="rhythmbox.schemas"

src_compile() {
	cd ${S}

	# disabling -Werror so it actually builds
	mv configure configure.orig
	sed "s|-Werror||" configure.orig > configure

	chmod +x configure
	./configure --prefix=/usr || die
	emake all || die
}