blob: 7c33b1b2d30bcbfd60f1c6264273ceb0e8ae01b2 (
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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/dgen-sdl/dgen-sdl-1.23.ebuild,v 1.13 2009/10/20 00:51:19 mr_bones_ Exp $
EAPI=2
inherit eutils games
DESCRIPTION="A Linux/SDL-Port of the famous DGen MegaDrive/Genesis-Emulator"
HOMEPAGE="http://tamentis.com/projects/dgen/"
SRC_URI="http://tamentis.com/projects/dgen/files/${P}.tar.gz"
LICENSE="dgen-sdl"
SLOT="0"
KEYWORDS="x86"
IUSE="X mmx opengl"
RDEPEND="media-libs/libsdl
opengl? ( virtual/opengl )"
DEPEND="${RDEPEND}
X? ( x11-misc/imake )
dev-lang/nasm"
PATCHES=(
# gcc34.patch for bug #116113
# gcc4.patch for bug #133203
"${FILESDIR}/${P}-gcc34.patch"
"${FILESDIR}/${P}-gcc4.patch"
)
src_prepare() {
base_src_prepare
# Collision with fondu
sed "s:tobin:tobin-dgen:" -i Makefile.{am,in} tobin.1 || die
mv tobin.1 tobin-dgen.1 || die
mv tobin.c tobin-dgen.c || die
}
src_configure() {
egamesconf \
$(use_with opengl) \
$(use_with X x) \
$(use_with mmx)
}
src_compile() {
emake -C musa m68kops.h || die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README sample.dgenrc
prepgamesdirs
}
|