# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion DESCRIPTION="OSD frontend for xine" HOMEPAGE="http://oxine.sourceforge.net/" LICENSE="GPL-2" KEYWORDS="amd64 ~ppc ~x86" SLOT="0" IUSE="X curl debug dvb jpeg joystick nls png polling lirc v4l" ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/oxine/trunk/oxine" DEPEND="media-libs/xine-lib curl? ( net-misc/curl ) joystick? ( media-libs/libjsw ) jpeg? ( media-gfx/imagemagick media-libs/netpbm media-video/mjpegtools ) lirc? ( app-misc/lirc ) nls? ( virtual/libintl sys-devel/gettext ) png? ( media-gfx/imagemagick media-libs/netpbm media-video/mjpegtools ) X? ( || ( ( x11-libs/libXext x11-libs/libX11 ) /dev/null 1>/dev/null || die "error running autogen.sh" # Note: Initial testing on amd64 indicates that the build will break # on --disable-curltest or --disable-xinetest so don't enable them # if debug is set. # Note on images: Image support will be automatically disabled if # netpbm, imagemagick or mjpegtools is not installed, irregardless # of what the USE flags are set to. # If one of the image USE flags is unset, disable image support if use !png && use !jpeg ; then myconf="${myconf} --disable-images" fi econf ${myconf} \ $( use_with X x ) \ $( use_with curl ) \ $( use_enable curl curltest ) \ $( use_enable debug ) \ $( use_enable dvb ) \ $( use_enable joystick ) \ $( use_enable lirc ) \ $( use_enable nls ) \ $( use_enable polling ) \ $( use_enable v4l ) \ --disable-rpath || die "econf died" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install died" dodoc AUTHORS ChangeLog NEWS README TODO dohtml doc/doc.html }