blob: acf7e403d6ccf56613816f3927004376e4d66674 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/fakenes/fakenes-0.3.1.ebuild,v 1.2 2004/09/12 10:04:41 mr_bones_ Exp $
inherit eutils games
DESCRIPTION="portable, Open Source NES emulator which is written mostly in C"
HOMEPAGE="http://fakenes.sourceforge.net/"
SRC_URI="mirror://sourceforge/fakenes/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="zlib fbcon svga"
RDEPEND=">=media-libs/allegro-4.1
zlib? ( sys-libs/zlib )
dev-games/hawknl"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
x86? ( dev-lang/nasm )"
src_unpack() {
unpack ${A}
cd "${S}"
# this is a hack simply because upstream seems kind
# of dead atm ... if they ever revive, we can do this
# properly by making an autoconf patch ...
epatch "${FILESDIR}/${PV}-allegro.patch"
if ! use fbcon ; then
sed -i \
-e '/sedfbme/s:.*::' \
src/gui.c src/include/gui/menus.h \
|| die "sed fb failed"
fi
if ! use svga ; then
sed -i \
-e '/sedsvgalibme/s:.*::' \
src/gui.c src/include/gui/menus.h \
|| die "sed svga failed"
fi
# fix bad AC_ARG_WITH() configure invocation
sed -i \
-e '/USE_/s:$enableval:$withval:' \
configure || die
# fix bad distribution
chmod a+x configure
edos2unix $(find -type f)
}
src_compile() {
egamesconf \
--with-hawknl \
$(use_with zlib) \
|| die
emake || die "emake failed"
}
src_install() {
dogamesbin src/fakenes || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins src/support/fakenes.{dat,ico,rc} || die "doins failed"
dodoc CHANGES README SOURCE SUPPORT
prepgamesdirs
}
|