blob: d5bdb27ed080f50cb926f112673a3698a8954943 (
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 Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/fake64/fake64-0.0.4_pre20021020.ebuild,v 1.5 2004/06/12 00:51:01 mr_bones_ Exp $
inherit games
DESCRIPTION="emulator for nintendo 64"
HOMEPAGE="http://www.fakelabs.org/code/fake64/"
SRC_URI="http://www.fakelabs.org/code/fake64/Fake64-20.10.2002.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="mmx 3dnow sse"
DEPEND="virtual/x11
virtual/opengl
virtual/glu
media-libs/libsdl"
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "s:@bindir@/fake64:${S}/blah:" \
-e 's:/etc/fake64rc:\$(DESTDIR)@sysconfdir@/fake64rc:' \
Makefile.am \
|| die "sed Makefile.am failed"
sed -i \
-e "s:/etc/fake64rc:${GAMES_SYSCONFDIR}/fake64rc:" \
romloader/configfile.c \
|| die "sed romloader/configfile.c failed"
touch blah
./autogen.sh || die "autogen failed"
}
src_compile() {
econf \
$(use_enable x86) \
$(use_enable mmx) \
$(use_enable 3dnow) \
$(use_enable sse) \
|| die
emake || die "emake failed"
}
src_install() {
dodir /etc
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS COMPATIBILITY ChangeLog NEWS README TODO
cd "${D}/etc"
sed -i \
-e "s:/usr/local/fake64/plugins:${GAMES_LIBDIR}/${PN}:" fake64rc \
|| die "sed fake64rc failed"
insinto "${GAMES_SYSCONFDIR}"
doins fake64rc && rm fake64rc
cd "${D}/usr/fake64"
dogamesbin bin/* || die "dogamesbin failed"
dosym romloader "${GAMES_BINDIR}/fake64"
dodir "${GAMES_LIBDIR}/${PN}"
mv plugins/* "${D}/${GAMES_LIBDIR}/${PN}/"
cd .. && rm -rf fake64
prepgamesdirs
}
|