blob: c8d9b1e3bc2711ceac5859dfa44e247f8652d38b (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vice/vice-1.16.ebuild,v 1.6 2005/08/15 14:18:34 mr_bones_ Exp $
inherit eutils games
DESCRIPTION="The Versatile Commodore 8-bit Emulator"
HOMEPAGE="http://www.viceteam.org/"
SRC_URI="ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="arts nls sdl X Xaw3d readline"
# FIXME: esound is required until configure.in is patched.
DEPEND="virtual/libc
media-sound/esound
media-libs/libpng
sys-libs/zlib
arts? ( kde-base/arts )
readline? ( sys-libs/readline )
sdl? ( media-libs/libsdl )
X? ( virtual/x11 )
Xaw3d? ( x11-libs/Xaw3d )"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/vice_gcc4_patch.gz
}
src_compile() {
# disabled ffmpeg support since ffmpeg isn't slotted and later
# versions aren't compatible with the vice code (bug #81795)
# disabled gnome support since it doesn't work.
# see bug #101901 and discussion.
egamesconf \
--disable-dependency-tracking \
--enable-fullscreen \
--enable-textfield \
--enable-ethernet \
--enable-realdevice \
--with-resid \
--without-midas \
--disable-ffmpeg \
--disable-gnomeui \
$(use_enable nls) \
$(use_with X x) \
$(use_with Xaw3d xaw3d) \
$(use_with arts) \
$(use_with readline) \
$(use_with sdl) \
|| die
emake || die "emake failed"
}
src_install() {
local docdir="${D}${GAMES_LIBDIR}/${PN}/doc"
make DESTDIR="${D}" install || die "make install failed"
dohtml "${docdir}/"* || die "dohtml failed"
dodoc \
AUTHORS ChangeLog FEEDBACK README \
"${docdir}/"{BUGS,NEWS,PETdoc.txt,TODO} \
"${docdir}/"{cbm_basic_tokens.txt,drive_info.txt,mon.txt,serial.txt}
rm -rf "${docdir}"
prepgamesdirs
}
|