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

Collapse All | Expand All

(-)mediastreamer-2.7.3-r3.ebuild (-14 / +19 lines)
Lines 4-10 Link Here
4
4
5
EAPI="4"
5
EAPI="4"
6
6
7
inherit eutils autotools multilib
7
inherit autotools eutils multilib
8
8
9
DESCRIPTION="Mediastreaming library for telephony application"
9
DESCRIPTION="Mediastreaming library for telephony application"
10
HOMEPAGE="http://www.linphone.org/"
10
HOMEPAGE="http://www.linphone.org/"
Lines 16-34 Link Here
16
# Many cameras will not work or will crash an application if mediastreamer2 is
16
# Many cameras will not work or will crash an application if mediastreamer2 is
17
# not built with v4l2 support (taken from configure.ac)
17
# not built with v4l2 support (taken from configure.ac)
18
# TODO: run-time test for ipv6: does it really need ortp[ipv6] ?
18
# TODO: run-time test for ipv6: does it really need ortp[ipv6] ?
19
IUSE="+alsa amr bindist coreaudio debug examples gsm ilbc ipv6 jack oss portaudio
19
IUSE="+alsa amr bindist coreaudio debug examples g726 g729 gsm ilbc ipv6
20
pulseaudio sdl +speex static-libs theora v4l video x264 X"
20
oss portaudio pulseaudio sdl +speex silk static-libs theora v4l video x264 X"
21
REQUIRED_USE="|| ( oss alsa jack portaudio coreaudio pulseaudio )
21
REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio )
22
	video? ( || ( sdl X ) )
22
	video? ( || ( sdl X ) )
23
	theora? ( video )
23
	theora? ( video )
24
	X? ( video )
24
	X? ( video )
25
	v4l? ( video )"
25
	v4l? ( video )"
26
26
27
RDEPEND=">=net-libs/ortp-0.16.2[ipv6?]
27
RDEPEND=">=net-libs/ortp-0.17[ipv6?]
28
	alsa? ( media-libs/alsa-lib )
28
	alsa? ( media-libs/alsa-lib )
29
	g726? ( >=media-libs/spandsp-0.0.6_pre1 )
29
	gsm? ( media-sound/gsm )
30
	gsm? ( media-sound/gsm )
30
	jack? ( >=media-libs/libsamplerate-0.0.13
31
		media-sound/jack-audio-connection-kit )
32
	portaudio? ( media-libs/portaudio )
31
	portaudio? ( media-libs/portaudio )
33
	pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
32
	pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
34
	speex? ( >=media-libs/speex-1.2_beta3 )
33
	speex? ( >=media-libs/speex-1.2_beta3 )
Lines 45-51 Link Here
45
	x11-proto/videoproto"
44
	x11-proto/videoproto"
46
45
47
PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) )
46
PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) )
47
	g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) )
48
	ilbc? ( media-plugins/mediastreamer-ilbc )
48
	ilbc? ( media-plugins/mediastreamer-ilbc )
49
	silk? ( !bindist? ( media-plugins/mediastreamer-silk ) )
49
	video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
50
	video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
50
51
51
DOCS=( AUTHORS ChangeLog NEWS README )
52
DOCS=( AUTHORS ChangeLog NEWS README )
Lines 65-81 Link Here
65
	sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \
66
	sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \
66
		|| die "patching help/Makefile.am failed"
67
		|| die "patching help/Makefile.am failed"
67
68
68
	epatch "${FILESDIR}/${PN}-2.7.3-v4l-automagic.patch"
69
	epatch "${FILESDIR}/${P}-v4l-automagic.patch" \
69
	epatch "${FILESDIR}/${P}-sdl-build.patch"
70
		   "${FILESDIR}/${P}-autopoint.patch"
70
71
71
	# linux/videodev.h dropped in 2.6.38
72
	# linux/videodev.h dropped in 2.6.38
72
	sed -i -e 's:msv4l.c::' src/Makefile.am || die
73
	sed -i -e 's:linux/videodev.h ::' configure.ac || die
73
	sed -i -e 's:linux/videodev.h ::' configure.ac || die
74
	eautoreconf
75
74
76
	# don't build examples in tests/
75
	# don't build examples in tests/
77
	sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
76
	sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
78
		|| die "patching Makefile.in failed"
77
		|| die "patching Makefile.in failed"
78
79
	# make sure to use host libtool version
80
	rm -f m4/libtool.m4 m4/lt*.m4 #282268
81
	mkdir m4
82
	eautoreconf
79
}
83
}
80
84
81
src_configure() {
85
src_configure() {
Lines 94-109 Link Here
94
		--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
98
		--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
95
		--datadir="${EPREFIX}"/usr/share/${PN} \
99
		--datadir="${EPREFIX}"/usr/share/${PN} \
96
		--libdir="${EPREFIX}"/usr/$(get_libdir) \
100
		--libdir="${EPREFIX}"/usr/$(get_libdir) \
101
		--disable-artsc \
97
		--disable-strict \
102
		--disable-strict \
103
		--disable-libv4l1 \
98
		--enable-external-ortp \
104
		--enable-external-ortp \
99
		--disable-artsc \
100
		$(use_enable alsa) \
105
		$(use_enable alsa) \
101
		$(use_enable pulseaudio) \
106
		$(use_enable pulseaudio) \
102
		$(use_enable coreaudio macsnd) ${macaqsnd} \
107
		$(use_enable coreaudio macsnd) ${macaqsnd} \
103
		$(use_enable debug) \
108
		$(use_enable debug) \
109
		$(use_enable g726 spandsp ) \
104
		$(use_enable gsm) \
110
		$(use_enable gsm) \
105
		$(use_enable ipv6) \
111
		$(use_enable ipv6) \
106
		$(use_enable jack) \
107
		$(use_enable oss) \
112
		$(use_enable oss) \
108
		$(use_enable portaudio) \
113
		$(use_enable portaudio) \
109
		$(use_enable speex) \
114
		$(use_enable speex) \
Lines 111-117 Link Here
111
		$(use_enable theora) \
116
		$(use_enable theora) \
112
		$(use_enable video) \
117
		$(use_enable video) \
113
		$(use_enable v4l) \
118
		$(use_enable v4l) \
114
		$(use_enable v4l libv4l) \
119
		$(use_enable v4l libv4l2) \
115
		$(use_enable sdl) \
120
		$(use_enable sdl) \
116
		$(use_enable X x11) \
121
		$(use_enable X x11) \
117
		$(use_enable X xv)
122
		$(use_enable X xv)

Return to bug 399737