Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/mediastreamer: metadata.xml ChangeLog mediastreamer-2.2.3-r1.ebuild mediastreamer-2.2.3_p1-r1.ebuild mediastreamer-2.2.3.ebuild mediastreamer-2.2.3_p1.ebuild
Date: Tue, 28 Apr 2009 13:51:26
Message-Id: E1LyniW-0006Pj-H6@stork.gentoo.org
1 volkmar 09/04/28 13:51:24
2
3 Modified: metadata.xml ChangeLog
4 Added: mediastreamer-2.2.3-r1.ebuild
5 mediastreamer-2.2.3_p1-r1.ebuild
6 Removed: mediastreamer-2.2.3.ebuild
7 mediastreamer-2.2.3_p1.ebuild
8 Log:
9 add mediastreamer plugins in PDEPEND and speex has a default use flag
10 (Portage version: 2.1.6.7/cvs/Linux ppc)
11
12 Revision Changes Path
13 1.5 media-libs/mediastreamer/metadata.xml
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/metadata.xml?rev=1.5&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/metadata.xml?rev=1.5&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/metadata.xml?r1=1.4&r2=1.5
18
19 Index: metadata.xml
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/metadata.xml,v
22 retrieving revision 1.4
23 retrieving revision 1.5
24 diff -u -r1.4 -r1.5
25 --- metadata.xml 25 Apr 2009 00:29:08 -0000 1.4
26 +++ metadata.xml 28 Apr 2009 13:51:24 -0000 1.5
27 @@ -8,6 +8,7 @@
28 </maintainer>
29 <use>
30 <flag name="gsm">Enables support for the gsm lossy speech compression codec</flag>
31 + <flag name="ilbc">Use of iLBC (RFC3951) codec plugin</flag>
32 <flag name="video">Enable video support</flag>
33 </use>
34 </pkgmetadata>
35
36
37
38 1.8 media-libs/mediastreamer/ChangeLog
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.8&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.8&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?r1=1.7&r2=1.8
43
44 Index: ChangeLog
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v
47 retrieving revision 1.7
48 retrieving revision 1.8
49 diff -u -r1.7 -r1.8
50 --- ChangeLog 27 Apr 2009 17:45:01 -0000 1.7
51 +++ ChangeLog 28 Apr 2009 13:51:24 -0000 1.8
52 @@ -1,6 +1,14 @@
53 # ChangeLog for media-libs/mediastreamer
54 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
55 -# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.7 2009/04/27 17:45:01 volkmar Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.8 2009/04/28 13:51:24 volkmar Exp $
57 +
58 +*mediastreamer-2.2.3_p1-r1 (28 Apr 2009)
59 +*mediastreamer-2.2.3-r1 (28 Apr 2009)
60 +
61 + 28 Apr 2009; Mounir Lamouri <volkmar@g.o>
62 + -mediastreamer-2.2.3.ebuild, +mediastreamer-2.2.3-r1.ebuild,
63 + -mediastreamer-2.2.3_p1.ebuild, +mediastreamer-2.2.3_p1-r1.ebuild:
64 + Add mediastreamer plugins in PDEPEND and speex has a default use flag.
65
66 *mediastreamer-2.2.3_p1 (27 Apr 2009)
67
68
69
70
71 1.1 media-libs/mediastreamer/mediastreamer-2.2.3-r1.ebuild
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3-r1.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3-r1.ebuild?rev=1.1&content-type=text/plain
75
76 Index: mediastreamer-2.2.3-r1.ebuild
77 ===================================================================
78 # Copyright 1999-2009 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3-r1.ebuild,v 1.1 2009/04/28 13:51:24 volkmar Exp $
81
82 EAPI="2"
83
84 inherit eutils autotools multilib
85
86 DESCRIPTION="Mediastreaming library for telephony application"
87 HOMEPAGE="http://www.linphone.org/index.php/eng/code_review/mediastreamer2"
88 SRC_URI="http://download.savannah.nongnu.org/releases/linphone/${PN}/${P}.tar.gz"
89
90 LICENSE="GPL-2"
91 SLOT="0"
92 KEYWORDS="~ppc"
93 IUSE="alsa arts debug doc examples gsm ilbc ipv6 jack oss portaudio +speex
94 theora video x264 X"
95
96 RDEPEND=">=net-libs/ortp-0.15.0
97 alsa? ( media-libs/alsa-lib )
98 arts? ( kde-base/arts )
99 gsm? ( media-sound/gsm )
100 jack? ( media-libs/libsamplerate
101 media-sound/jack-audio-connection-kit )
102 portaudio? ( media-libs/portaudio )
103 speex? ( >=media-libs/speex-1.1.12 )
104 video? ( media-libs/libsdl[video,X]
105 media-video/ffmpeg
106 theora? ( media-libs/libtheora )
107 X? ( x11-libs/libX11 ) )"
108 DEPEND="${RDEPEND}
109 dev-util/pkgconfig
110 doc? ( app-doc/doxygen )"
111
112 PDEPEND="ilbc? ( media-plugins/mediastreamer-ilbc )
113 video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
114
115 # TODO:
116 # run-time test for arts support
117 # run-time test for ipv6 : does it need ortp[ipv6] ?
118
119 # NOTES:
120 # in some way, v4l support is auto-magic but keeping it like that atm
121
122 pkg_setup() {
123 if ! use oss && ! use alsa && ! use arts && ! use jack && ! use portaudio;
124 then
125 eerror "You must enable at least oss, alsa, arts, jack or portaudio"
126 eerror "Please, re-emerge ${PN} with one of this USE flag enabled"
127 die
128 fi
129
130 if ! use video && ( use theora || use X ); then
131 ewarn "X and theora support are enabled if video USE flag is enabled"
132 ewarn "If you want X or theora support, consider re-emerge with USE=\"video\""
133 fi
134 }
135
136 src_prepare() {
137 # fixing oss, jack, gsm, speex, theora and X auto-magic deps
138 epatch "${FILESDIR}"/${P}-autodeps.patch
139
140 # fix arts detection for gentoo
141 epatch "${FILESDIR}"/${P}-arts.patch
142
143 # too hard to have a flexible lib dir in a clean way
144 sed -i -e "s:\(/usr/kde/3.5/\)lib:\1$(get_libdir):" configure.ac \
145 || die "patching configure.ac failed"
146
147 # respect user's CFLAGS
148 sed -i -e "s:-O2::" configure.ac || die "patching configure.ac failed"
149
150 # change default paths
151 sed -i -e "s:\(\${prefix}/\)lib:\1$(get_libdir):" \
152 -e "s:\(prefix/share\):\1/${PN}:" configure.ac \
153 || die "patching configure.ac failed"
154
155 eautoreconf
156
157 # fix arts include
158 sed -i -e "s:kde/\(artsc/artsc.h\):\1:" src/arts.c \
159 || die "patching src/arts.c failed"
160
161 # don't build examples in tests/
162 sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
163 || die "patching Makefile.in failed"
164 }
165
166 src_configure() {
167 # strict: don't want -Werror
168 # macsnd and macaqsnd: macosx related
169 # external-ortp: don't use bundled libs
170 econf \
171 --datadir=/usr/share/${PN} \
172 --libdir=/usr/$(get_libdir) \
173 --disable-strict \
174 --disable-macsnd \
175 --disable-macaqsnd \
176 --enable-external-ortp \
177 --disable-dependency-tracking \
178 $(use_enable alsa) \
179 $(use_enable arts artsc) \
180 $(use_enable debug) \
181 $(use_enable gsm) \
182 $(use_enable ipv6) \
183 $(use_enable jack) \
184 $(use_enable oss) \
185 $(use_enable portaudio) \
186 $(use_enable speex) \
187 $(use_enable theora) \
188 $(use_enable video) \
189 $(use_enable X x11)
190 }
191
192 src_compile() {
193 default_src_compile
194
195 if use doc; then
196 doxygen help/DoxyFile || die "building doc failed"
197 fi
198 }
199
200 src_install() {
201 emake DESTDIR="${D}" install || die "emake install failed"
202
203 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
204
205 if use doc; then
206 dohtml -r help/doc/html/* || die "dohtml failed"
207 newman help/doc/man/man3/${PN}2.3 ${PN}.3 || die "newman failed"
208 fi
209
210 if use examples; then
211 insinto /usr/share/doc/${PF}/examples
212 doins tests/*.c || die "doins failed"
213 fi
214 }
215
216
217
218 1.1 media-libs/mediastreamer/mediastreamer-2.2.3_p1-r1.ebuild
219
220 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1-r1.ebuild?rev=1.1&view=markup
221 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1-r1.ebuild?rev=1.1&content-type=text/plain
222
223 Index: mediastreamer-2.2.3_p1-r1.ebuild
224 ===================================================================
225 # Copyright 1999-2009 Gentoo Foundation
226 # Distributed under the terms of the GNU General Public License v2
227 # $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1-r1.ebuild,v 1.1 2009/04/28 13:51:24 volkmar Exp $
228
229 EAPI="2"
230
231 inherit eutils autotools multilib
232
233 MY_P=${P/_p1/}
234
235 DESCRIPTION="Mediastreaming library for telephony application"
236 HOMEPAGE="http://www.linphone.org/index.php/eng/code_review/mediastreamer2"
237 SRC_URI="http://download.savannah.nongnu.org/releases/linphone/${PN}/${MY_P}.tar.gz
238 mirror://gentoo/${P}-linphone-3.1.1.patch.tgz"
239
240 LICENSE="GPL-2"
241 SLOT="0"
242 KEYWORDS="~ppc"
243 IUSE="alsa arts debug doc examples gsm ilbc ipv6 jack oss portaudio +speex
244 theora video X"
245
246 RDEPEND=">=net-libs/ortp-0.15.0_p1
247 alsa? ( media-libs/alsa-lib )
248 arts? ( kde-base/arts )
249 gsm? ( media-sound/gsm )
250 jack? ( media-libs/libsamplerate
251 media-sound/jack-audio-connection-kit )
252 portaudio? ( media-libs/portaudio )
253 speex? ( >=media-libs/speex-1.2_beta3 )
254 video? ( media-libs/libsdl[video,X]
255 media-video/ffmpeg
256 theora? ( media-libs/libtheora )
257 X? ( x11-libs/libX11 ) )"
258 DEPEND="${RDEPEND}
259 dev-util/pkgconfig
260 doc? ( app-doc/doxygen )"
261
262 PDEPEND="ilbc? ( media-plugins/mediastreamer-ilbc )
263 video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
264
265 S=${WORKDIR}/${MY_P}
266
267 # TODO:
268 # run-time test for arts support
269 # run-time test for ipv6 : does it need ortp[ipv6] ?
270
271 # NOTES:
272 # in some way, v4l support is auto-magic but keeping it like that atm
273
274 pkg_setup() {
275 if ! use oss && ! use alsa && ! use arts && ! use jack && ! use portaudio;
276 then
277 eerror "You must enable at least oss, alsa, arts, jack or portaudio"
278 eerror "Please, re-emerge ${PN} with one of this USE flag enabled"
279 die
280 fi
281
282 if ! use video && ( use theora || use X ); then
283 ewarn "X and theora support are enabled if video USE flag is enabled"
284 ewarn "If you want X or theora support, consider re-emerge with USE=\"video\""
285 fi
286 }
287
288 src_prepare() {
289 epatch "${WORKDIR}"/${P}-linphone-3.1.1.patch
290
291 # fixing doc, oss, jack, gsm, speex, theora and X auto-magic deps
292 epatch "${FILESDIR}"/${P}-autodeps.patch
293
294 # fix arts detection for gentoo
295 epatch "${FILESDIR}"/${P}-arts.patch
296
297 # too hard to have a flexible lib dir in a clean way
298 sed -i -e "s:\(/usr/kde/3.5/\)lib:\1$(get_libdir):" configure.ac \
299 || die "patching configure.ac failed"
300
301 # respect user's CFLAGS
302 sed -i -e "s:-O2::" configure.ac || die "patching configure.ac failed"
303
304 # change default paths
305 sed -i -e "s:\(\${prefix}/\)lib:\1$(get_libdir):" \
306 -e "s:\(prefix/share\):\1/${PN}:" configure.ac \
307 || die "patching configure.ac failed"
308
309 # fix html doc installation dir
310 # sed -i -e "s:\$(pkgdocdir):\$(docdir):" help/Makefile.am \
311 # || die "patching help/Makefile.am failed"
312 sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \
313 || die "patching help/Makefile.am failed"
314
315 eautoreconf
316
317 # fix arts include
318 sed -i -e "s:kde/\(artsc/artsc.h\):\1:" src/arts.c \
319 || die "patching src/arts.c failed"
320
321 # don't build examples in tests/
322 sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
323 || die "patching Makefile.in failed"
324 }
325
326 src_configure() {
327 # strict: don't want -Werror
328 # macsnd and macaqsnd: macosx related
329 # external-ortp: don't use bundled libs
330 econf \
331 --htmldir=/usr/share/doc/${PF}/html \
332 --datadir=/usr/share/${PN} \
333 --libdir=/usr/$(get_libdir) \
334 --disable-strict \
335 --disable-macsnd \
336 --disable-macaqsnd \
337 --enable-external-ortp \
338 --disable-dependency-tracking \
339 $(use_enable alsa) \
340 $(use_enable arts artsc) \
341 $(use_enable debug) \
342 $(use_enable doc) \
343 $(use_enable gsm) \
344 $(use_enable ipv6) \
345 $(use_enable jack) \
346 $(use_enable oss) \
347 $(use_enable portaudio) \
348 $(use_enable speex) \
349 $(use_enable theora) \
350 $(use_enable video) \
351 $(use_enable X x11)
352 }
353
354 src_install() {
355 emake DESTDIR="${D}" install || die "emake install failed"
356
357 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
358
359 if use examples; then
360 insinto /usr/share/doc/${PF}/examples
361 doins tests/*.c || die "doins failed"
362 fi
363 }