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

Collapse All | Expand All

(-)swfdec-0.5.4.ebuild (-7 / +21 lines)
Lines 2-8 Link Here
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/media-libs/swfdec/swfdec-0.5.4.ebuild,v 1.1 2007/11/24 18:12:00 pclouds Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.5.4.ebuild,v 1.1 2007/11/24 18:12:00 pclouds Exp $
4
4
5
inherit eutils versionator
5
inherit eutils versionator confutils
6
6
7
MY_PV=$(get_version_component_range 1-2)
7
MY_PV=$(get_version_component_range 1-2)
8
DESCRIPTION="Macromedia Flash decoding library"
8
DESCRIPTION="Macromedia Flash decoding library"
Lines 13-26 Link Here
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~amd64 ~ppc ~x86"
14
KEYWORDS="~amd64 ~ppc ~x86"
15
15
16
IUSE="ffmpeg gstreamer gnome mad oss"
16
IUSE="ffmpeg gstreamer gnome mad oss alsa pulseaudio soup"
17
17
18
RESTRICT="test"
18
RESTRICT="test"
19
19
20
RDEPEND=">=dev-libs/glib-2.10
20
RDEPEND=">=dev-libs/glib-2.12
21
	>=dev-libs/liboil-0.3.10-r1
21
	>=dev-libs/liboil-0.3.1
22
	x11-libs/pango
22
	>=x11-libs/pango-1.16
23
	net-libs/libsoup
23
	soup? ( >=net-libs/libsoup-2.2.0 )
24
	>=x11-libs/cairo-1.2
24
	>=x11-libs/cairo-1.2
25
	>=x11-libs/gtk+-2.8.0
25
	>=x11-libs/gtk+-2.8.0
26
	>=media-libs/alsa-lib-1.0.12
26
	>=media-libs/alsa-lib-1.0.12
Lines 28-33 Link Here
28
	mad? ( >=media-libs/libmad-0.15.1b )
28
	mad? ( >=media-libs/libmad-0.15.1b )
29
	gstreamer? ( >=media-libs/gstreamer-0.10.11 )
29
	gstreamer? ( >=media-libs/gstreamer-0.10.11 )
30
	gnome? ( gnome-base/gnome-vfs )
30
	gnome? ( gnome-base/gnome-vfs )
31
	alsa? ( >=media-libs/alsa-lib-1.0 )
32
	pulseaudio? ( media-sound/pulseaudio )
31
	!<=net-www/swfdec-mozilla-0.5.2"
33
	!<=net-www/swfdec-mozilla-0.5.2"
32
34
33
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
Lines 44-62 Link Here
44
		ewarn "In order to compile libswfdec-gtk with Gnome-VFS"
46
		ewarn "In order to compile libswfdec-gtk with Gnome-VFS"
45
		ewarn "support you must have 'gnome' USE flag enabled"
47
		ewarn "support you must have 'gnome' USE flag enabled"
46
	fi
48
	fi
49
	if use !soup ; then
50
		ewarn "swfdec will be built without HTTP protocol support"
51
		ewarn "so you won't be able to use swfdec-mozilla, please"
52
		ewarn "add 'soup' to your USE flags"
53
	fi
54
	confutils_use_conflict oss alsa pulseaudio
47
}
55
}
48
56
49
src_compile() {
57
src_compile() {
50
	local myconf
58
	local myconf
59
	local myaudio
51
60
52
	#--with-audio=[auto/alsa/oss/none]
61
	#--with-audio=[auto/alsa/oss/none]
53
	use oss && myconf=" --with-audio=oss"
62
	myaudio="none"
63
	use oss && myaudio="oss"
64
	use pulseaudio && myaudio="pa"
65
	use alsa && myaudio="alsa"
66
	myconf=" --with-audio=$myaudio"
54
67
55
	econf \
68
	econf \
56
		$(use_enable gstreamer) \
69
		$(use_enable gstreamer) \
57
		$(use_enable ffmpeg) \
70
		$(use_enable ffmpeg) \
58
		$(use_enable mad) \
71
		$(use_enable mad) \
59
		$(use_enable gnome gnome-vfs) \
72
		$(use_enable gnome gnome-vfs) \
73
		$(use_enable soup) \
60
		${myconf} || die "configure failed"
74
		${myconf} || die "configure failed"
61
75
62
	emake || die "emake failed"
76
	emake || die "emake failed"

Return to bug 202379