blob: 82d0058a7996337aefb7de07fa097661f2935d1c (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/darcnes/darcnes-0401-r2.ebuild,v 1.5 2004/06/24 22:25:15 agriffis Exp $
inherit games
DESCRIPTION="A multi-system emulator"
HOMEPAGE="http://www.dridus.com/~nyef/darcnes/"
SRC_URI="http://www.dridus.com/~nyef/darcnes/download/dn9b${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 -ppc"
IUSE="gtk svga X"
DEPEND="svga? ( >=media-libs/svgalib-1.4.2 )
!svga? ( virtual/x11 )
X? ( virtual/x11 )
gtk? (
virtual/x11
=x11-libs/gtk+-1.2* )"
S="${WORKDIR}/${PN}"
pkg_setup() {
export build_X=true
use svga && build_X=false
use gtk && build_X=false
use X && build_X=true
}
src_compile() {
if use svga ; then
emake TARGET=Linux_svgalib OPTFLAGS="${CFLAGS}" || \
die "compile target Linux_svgalib failed"
fi
if use gtk ; then
emake BINFILE=gdarcnes TARGET=Linux_GTK OPTFLAGS="${CFLAGS}" || \
die "compile target Linux_GTK failed"
fi
if $build_X ; then
emake TARGET=Linux_X OPTFLAGS="${CFLAGS}" || \
die "compile target Linux_X failed"
fi
}
src_install() {
if use svga ; then
dogamesbin sdarcnes || die "dogamesbin failed (svga)"
fi
if use gtk ; then
dogamesbin gdarcnes || die "dogamesbin failed (gtk)"
fi
if $build_X ; then
dogamesbin darcnes || die "dogamesbin failed"
fi
dodoc readme
prepgamesdirs
}
|