Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 299870 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-emulation/vice/vice-2.1.ebuild (-14 / +34 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vice/vice-2.1.ebuild,v 1.5 2009/11/12 07:59:49 tupone Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vice/vice-2.1.ebuild,v 1.1 2009/01/25 03:59:02 mr_bones_ Exp $
4
4
5
EAPI=2
5
EAPI=2
6
inherit eutils games
6
inherit eutils games
Lines 12-18 Link Here
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
14
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
15
IUSE="Xaw3d alsa esd gnome nls png readline resid sdl ipv6 mmap oss zlib X gif jpeg xv dga xrandr"
15
16
# fix: removed resid. vice uses its own internal copy of resid and does not depend on the external lib
17
IUSE="Xaw3d alsa arts esd gnome nls png readline sdl ipv6 memmap ethernet oss zlib X gif jpeg xv dga xrandr ffmpeg lame pulseaudio"
18
19
# fix: (use:ffmpeg) >=ffmpeg-0.5.p20373 - dependancy required to make video capturing work
20
# fix: (use:lame) added use flag and dependancy for media-sound/lame
21
# fix: (use:ethernet) >=libpcap-0.9.8 and >=libnet-1.1.2.1 - dependancy required to make ethernet emulation work
22
#      WARNING: enabling ethernet emulation is a possible security risk (fragments of ethernet packets unrelated
23
#               to the emulation may show up in the emulated program), a proper warning should be shown
24
# fix: (use:pulseaudio)
16
25
17
RDEPEND="
26
RDEPEND="
18
	x11-libs/libX11
27
	x11-libs/libX11
Lines 26-41 Link Here
26
	Xaw3d? ( x11-libs/Xaw3d )
35
	Xaw3d? ( x11-libs/Xaw3d )
27
	!Xaw3d? ( !gnome? ( x11-libs/libXaw ) )
36
	!Xaw3d? ( !gnome? ( x11-libs/libXaw ) )
28
	alsa? ( media-libs/alsa-lib )
37
	alsa? ( media-libs/alsa-lib )
38
	arts? ( kde-base/arts )
29
	esd? ( media-sound/esound )
39
	esd? ( media-sound/esound )
30
	gnome? (
40
	gnome? (
31
		x11-libs/gtk+:2
41
		x11-libs/gtk+:2
32
		dev-libs/atk
42
		dev-libs/atk
33
		x11-libs/pango
43
		x11-libs/pango
34
	)
44
	)
45
	lame? ( media-sound/lame )
46
	ffmpeg? ( >=media-video/ffmpeg-0.5_p20373 )
47
	ethernet? (
48
	    >=net-libs/libpcap-0.9.8
49
	    >=net-libs/libnet-1.1.2.1
50
	)
35
	nls? ( virtual/libintl )
51
	nls? ( virtual/libintl )
36
	png? ( media-libs/libpng )
52
	png? ( media-libs/libpng )
37
	readline? ( sys-libs/readline )
53
	readline? ( sys-libs/readline )
38
	resid? ( media-libs/resid )
39
	sdl? ( media-libs/libsdl )
54
	sdl? ( media-libs/libsdl )
40
	gif? ( media-libs/giflib )
55
	gif? ( media-libs/giflib )
41
	jpeg? ( media-libs/jpeg )
56
	jpeg? ( media-libs/jpeg )
Lines 52-84 Link Here
52
	xv? ( x11-proto/videoproto )
67
	xv? ( x11-proto/videoproto )
53
	nls? ( sys-devel/gettext )"
68
	nls? ( sys-devel/gettext )"
54
69
55
src_prepare() {
70
# todo: add sdlui switch for 2.2 when its out
56
	epatch "${FILESDIR}"/${P}-gcc44.patch \
71
# fix: memmap enables extra monitor features, it has nothing to do with mmap
57
		"${FILESDIR}"/${P}-xshm.patch
72
# fix: ethernet enables ethernet emulation
58
}
73
# fix: resid is an internal switch (it does not depend on the resid library)
74
#      so it can safely be always enabled (and its switchable at runtime so
75
#      there is no backdraw besides marginaly bigger code)
76
# fix: sdl flag selects the soundsystem only, to select the sdl-ui "--enable-sdlui"
77
#      should be used
59
78
60
src_configure() {
79
src_configure() {
61
	# don't try to actually run fc-cache (bug #280976)
62
	FCCACHE=/bin/true \
63
	egamesconf \
80
	egamesconf \
64
		--disable-dependency-tracking \
81
		--disable-dependency-tracking \
65
		--enable-fullscreen \
82
		--enable-fullscreen \
66
		--enable-parsid \
83
		--enable-parsid \
67
		--disable-ffmpeg \
84
		$(use_enable ffmpeg) \
85
		$(use_enable lame) \
68
		--without-midas \
86
		--without-midas \
69
		$(use_enable gnome gnomeui) \
87
		$(use_enable gnome gnomeui) \
70
		$(use_enable nls) \
88
		$(use_enable nls) \
71
		$(use_with Xaw3d xaw3d) \
89
		$(use_with Xaw3d xaw3d) \
72
		$(use_with alsa) \
90
		$(use_with alsa) \
73
		--without-arts \
91
		$(use_with arts) \
74
		$(use_with esd) \
92
		$(use_with esd) \
93
		$(use_with pulseaudio pulse) \
75
		$(use_with png) \
94
		$(use_with png) \
76
		$(use_with readline) \
95
		$(use_with readline) \
77
		$(use_with resid) \
96
		--with-resid \
78
		$(use_with sdl) \
97
		$(use_with sdl sdlsound) \
79
		$(use_enable ipv6) \
98
		$(use_enable ipv6) \
80
		$(use_enable oss) \
99
		$(use_enable oss) \
81
		$(use_enable mmap memmap) \
100
		$(use_enable memmap) \
101
		$(use_enable ethernet) \
82
		$(use_with zlib) \
102
		$(use_with zlib) \
83
		$(use_with X x)
103
		$(use_with X x)
84
}
104
}

Return to bug 299870