# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion ESVN_REPO_URI="https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC" DESCRIPTION="XBMC is a free and open source media-player and entertainment hub" HOMEPAGE="http://xbmc.org/" #SRC_URI="mirror://sourceforge/xbmc/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="hal debug mms pcre xrandr opengl" RDEPEND=">=dev-lang/python-2.4 dev-libs/fribidi pcre? ( dev-libs/libpcre ) dev-libs/lzo dev-libs/tre =dev-python/pysqlite-2* media-libs/alsa-lib media-libs/freetype media-libs/glew media-libs/jasper media-libs/libmad mms? ( media-libs/libmms ) media-libs/libogg media-libs/libvorbis media-libs/sdl-gfx media-libs/sdl-image media-libs/sdl-mixer media-libs/sdl-sound net-misc/curl sys-apps/dbus hal? ( sys-apps/hal ) opengl? ( virtual/opengl ) sys-apps/pmount x11-libs/libXinerama xrandr? ( x11-libs/libXrandr ) x11-libs/libXrender x11-proto/xineramaproto virtual/mysql" DEPEND="${RDEPEND}" src_unpack() { subversion_src_unpack } src_compile() { local myconf="--prefix=/usr --mandir=/usr/share/man" myconf="${myconf} $(use_enable hal halmount)" myconf="${myconf} $(use_enable opengl gl)" myconf="${myconf} $(use_enable debug)" myconf="${myconf} $(use_enable mms)" myconf="${myconf} $(use_enable pcre)" myconf="${myconf} $(use_enable xrandr)" econf ${myconf} || die "Configure failed!" emake || die "Make failed!" } src_install() { einstall INSTALL_ROOT="${D}" || die "install failed" }