blob: dcc3e1217649d5315bef6aded9776863ad2e8c0f (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/fceultra/fceultra-093.ebuild,v 1.1 2003/03/19 03:16:23 sunflare Exp $
inherit gcc
MY_P=fceu
S=${WORKDIR}/${MY_P}
DESCRIPTION="A portable NES/Famicom emulator"
SRC_URI="http://fceultra.sourceforge.net/dev/${MY_P}${PV}src.tar.gz"
HOMEPAGE="http://fceultra.sourceforge.net/"
SLOT="0"
KEYWORDS="~x86 -ppc"
LICENSE="GPL-2"
# Because of code generation bugs, FCEUltra now depends on a version
# of gcc greater than or equal to GCC 3.2.2.
DEPEND="svga? ( media-libs/svgalib )
sdl? ( media-libs/libsdl )
>=sys-devel/gcc-3.2.2"
RDEPEND=${DEPEND}
pkg_setup() {
use sdl && return 0
use svga && return 0
eerror "You must have 'sdl' or 'svga' in your USE variable"
die "unable to build SVGA or SDL versions"
}
src_compile() {
mv Makefile.base Makefile.orig
sed -e "s:\${TFLAGS}:\${TFLAGS} ${CFLAGS}:" \
Makefile.orig > Makefile.base
if [ `use sdl` ] ; then
make -f Makefile.unixsdl || die "sdl make failed"
mv fceu fceu-sdl
make -f Makefile.unixsdl clean
fi
if [ `use svga` ] ; then
make -f Makefile.linuxvga || die "svga make failed"
mv fceu fceu-svga
fi
}
src_install() {
use sdl && dobin fceu-sdl
use svga && dobin fceu-svga
dodoc Documentation/{*,rel/readme-linux.txt}
}
|