blob: d0f9c00496ae76ef48663528fbed479f9e5c6d70 (
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
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/atari800/atari800-2.1.0.ebuild,v 1.7 2010/06/05 23:07:29 reavertm Exp $
EAPI=2
inherit games
DESCRIPTION="Atari 800 emulator"
HOMEPAGE="http://atari800.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
mirror://sourceforge/${PN}/xf25.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ppc sparc x86"
IUSE="readline sdl"
RDEPEND="sdl? ( >=media-libs/libsdl-1.2.0 )
!sdl? ( x11-libs/libX11 )
media-libs/libpng:0
readline? ( sys-libs/readline )"
DEPEND="${RDEPEND}
!sdl? (
x11-libs/libXt
x11-libs/libX11
x11-proto/xextproto
x11-proto/xproto )
app-arch/unzip"
src_prepare() {
# remove some not-so-interesting ones
rm -f DOC/{INSTALL.*,*.in,CHANGES.OLD}
sed -i \
-e "/CFG_FILE/s:/etc:${GAMES_SYSCONFDIR}:" \
src/atari.c \
|| die "sed failed"
sed -i \
-e 's/LDFLAGS="-s"/:/' \
-e 's/-ltermcap//' \
src/configure \
|| die "sed failed"
sed "s:/usr/share/games:${GAMES_DATADIR}:" \
"${FILESDIR}"/atari800.cfg > "${T}"/atari800.cfg \
|| die "sed failed"
}
src_configure() {
local target="x11"
use sdl && target="sdl"
cd src && \
egamesconf \
$(use_enable readline) \
--enable-crashmenu \
--enable-break \
--enable-hints \
--enable-asm \
--enable-cursorblk \
--enable-led \
--enable-displayled \
--enable-sndclip \
--enable-linuxjoy \
--enable-sound \
--target=${target}
}
src_compile() {
emake -C src || die "emake failed"
}
src_install () {
dogamesbin src/atari800 || die "dogamesbin failed"
newman src/atari800.man atari800.6
dodoc README.1ST DOC/*
insinto "${GAMES_DATADIR}/${PN}"
doins "${WORKDIR}/"*.ROM || die "doins failed (ROM)"
insinto "${GAMES_SYSCONFDIR}"
doins "${T}"/atari800.cfg || die "doins failed (cfg)"
prepgamesdirs
}
|