blob: e8b3a8586053373c62d4ee5a83d8c052320b4af4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceultra/fceultra-0.98.12.ebuild,v 1.7 2007/08/13 16:52:11 mr_bones_ Exp $
inherit autotools eutils games
DESCRIPTION="A portable NES/Famicom emulator"
HOMEPAGE="http://www.emulator-zone.com/doc.php/nes/fceultra.html"
SRC_URI="mirror://gentoo/fceu-${PV}.src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="opengl"
RDEPEND=">=media-libs/libsdl-1.2.0
opengl? ( virtual/opengl )
sys-libs/zlib"
# 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}/fceu
src_unpack() {
unpack ${A}
cd "${S}"
chmod a-x Documentation/tech/exp/*
# bug #155153 - disable SEXYAL system
epatch \
"${FILESDIR}"/${P}-mkdir.patch \
"${FILESDIR}"/${P}-nosex.patch
eautoreconf
}
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
}
|