# 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 joystick gprof ccache" RDEPEND=">=dev-lang/python-2.4 dev-libs/fribidi dev-libs/boost 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 gprof? ( sys-devel/binutils ) ccache? ( dev-util/ccache ) joystick? ( media-libs/libsdl )" DEPEND="${RDEPEND}" src_compile() { econf \ $(use_enable opengl gl) \ $(use_enable mms mms) \ $(use_enable xrandr xrandr) \ $(use_enable hal halmount) \ $(use_enable pcre pcre) \ $(use_enable joystick joystick) \ $(use_enable gprof profiling) \ $(use_enable ccache ccache) \ $(use_enable debug debug) \ || die "Error: econf failed!" emake || die "Error: emake failed!" } src_install() { einstall INSTALL_ROOT="${D}" || die "install failed" } pkg_postinst() { elog "If you wish to update ${PN} manually simply run:" elog elog "ESVN_REVISION= emerge =${PF}" elog elog "where is either HEAD (in case you wish to get all updates)" elog "or specific revision number. But NOTE, this update will vanish" elog "next time you reemerge ${PN}. To make update permanent create" elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=" elog "content. Then each time you run emerge ${PN} you'll have said" elog " installed. For example, if you run" elog " # mkdir -p /etc/portage/env/${CATEGORY}" elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}" elog "each time you reemerge ${PN} it'll be updated to get the latest" elog "updates" }