# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="A portable NES/Famicom emulator, forked from FCEUltra" HOMEPAGE="http://mednafen.com/" SRC_URI="http://mednafen.com/releases/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="opengl" RDEPEND=">=media-libs/libsdl-1.2.0 opengl? ( virtual/opengl app-admin/eselect-opengl ) sys-libs/zlib media-libs/libsndfile dev-libs/libcdio media-libs/libsamplerate media-libs/sdl-net media-libs/libsdl media-libs/libvorbis" # FIXME: Does this still apply to mednafen? # Because of code generation bugs, FCEUltra now depends on a version # of gcc greater than or equal to GCC 3.2.2. DEPEND="${RDEPEND} >=sys-devel/gcc-3.2.2" S=${WORKDIR}/mednafen src_compile() { egamesconf \ --disable-dependency-tracking \ --without-gtk \ --disable-gtktest \ $(use_with opengl) || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc Documentation/*.txt AUTHORS README NEWS TODO ChangeLog cp -r Documentation/tech "${D}/usr/share/doc/${PF}/" || die "cp failed" prepalldocs dohtml Documentation/* prepgamesdirs }