Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/opal: ChangeLog opal-3.6.2.ebuild metadata.xml
Date: Fri, 03 Jul 2009 10:10:05
Message-Id: E1MMfiQ-00085g-JM@stork.gentoo.org
1 volkmar 09/07/03 10:09:58
2
3 Modified: ChangeLog metadata.xml
4 Added: opal-3.6.2.ebuild
5 Log:
6 version bump to 3.6.2, bug 238610
7 (Portage version: 13756-svn/cvs/Linux i686)
8
9 Revision Changes Path
10 1.44 net-libs/opal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?rev=1.44&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?rev=1.44&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?r1=1.43&r2=1.44
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v
19 retrieving revision 1.43
20 retrieving revision 1.44
21 diff -u -r1.43 -r1.44
22 --- ChangeLog 9 Oct 2008 22:29:36 -0000 1.43
23 +++ ChangeLog 3 Jul 2009 10:09:58 -0000 1.44
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-libs/opal
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.43 2008/10/09 22:29:36 flameeyes Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.44 2009/07/03 10:09:58 volkmar Exp $
30 +
31 +*opal-3.6.2 (03 Jul 2009)
32 +
33 + 03 Jul 2009; Mounir Lamouri <volkmar@g.o>
34 + +files/opal-3.6.2-as-needed.patch, +files/opal-3.6.2-jdkroot.patch,
35 + +files/opal-3.6.2-sbc.patch, +files/opal-3.6.2-system-ilbc.patch,
36 + metadata.xml, +opal-3.6.2.ebuild:
37 + Version bump to 3.6.2. Add myself as maintainer. Fix bug 238610
38
39 09 Oct 2008; Diego Pettenò <flameeyes@g.o> opal-2.2.11.ebuild:
40 Fix build dependencies.
41
42
43
44 1.3 net-libs/opal/metadata.xml
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/metadata.xml?rev=1.3&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/metadata.xml?rev=1.3&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/metadata.xml?r1=1.2&r2=1.3
49
50 Index: metadata.xml
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-libs/opal/metadata.xml,v
53 retrieving revision 1.2
54 retrieving revision 1.3
55 diff -u -r1.2 -r1.3
56 --- metadata.xml 23 Aug 2008 06:23:55 -0000 1.2
57 +++ metadata.xml 3 Jul 2009 10:09:58 -0000 1.3
58 @@ -1,9 +1,47 @@
59 <?xml version="1.0" encoding="UTF-8"?>
60 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
61 <pkgmetadata>
62 - <herd>voip</herd>
63 - <use>
64 - <flag name="noaudio">Disable audio codecs</flag>
65 - <flag name="novideo">Disable video codecs</flag>
66 - </use>
67 + <herd>voip</herd>
68 + <maintainer>
69 + <email>volkmar@g.o</email>
70 + <name>Mounir Lamouri</name>
71 + </maintainer>
72 + <use>
73 + <flag name="audio">Enable audio support</flag>
74 + <flag name="capi">Enable CAPI support</flag>
75 + <flag name="dns">Enable DNS resolver support</flag>
76 + <flag name="dtmf">Enable DTMF encoding/decoding support</flag>
77 + <flag name="fax">Enable T.38 FAX protocol</flag>
78 + <flag name="h224">Enable H.224 real time control protocol</flag>
79 + <flag name="h281">Enable H.281 Far-End Camera Control protocol</flag>
80 + <flag name="h323">Enable H.323 protocol</flag>
81 + <flag name="iax">Enable Inter-Asterisk eXchange protocol</flag>
82 + <flag name="ivr">Enable Interactive Voice Response</flag>
83 + <flag name="ixj">Enable xJack cards support</flag>
84 + <flag name="lid">Enable Line Interface Device</flag>
85 + <flag name="plugins">Enable plugins support</flag>
86 + <flag name="rfc4175">Enable RTP Payload Format for Uncompressed Video
87 + </flag>
88 + <flag name="sbc">Enable the Bluetooth low-complexity, SubBand Codec
89 + </flag>
90 + <flag name="sip">Enable Session Initiation Protocol</flag>
91 + <flag name="sipim">Enable SIP Instant Messages session</flag>
92 + <flag name="srtp">Enable Secure Real-time Transport Protocol</flag>
93 + <flag name="stats">Enable statistic reporting</flag>
94 + <flag name="swig">Use swig to generate bindings</flag>
95 + <flag name="video">Enable video support</flag>
96 + <flag name="vpb">Enable Voicetronics VPB card support</flag>
97 + <flag name="vxml">Enable VXML support</flag>
98 + <flag name="wav">Enable WAVFILE support</flag>
99 + <flag name="x264-static">Install x264 plugin statically linked with x264
100 + </flag>
101 + <!-- for 2.* -->
102 + <flag name="noaudio">Disable audio codecs</flag>
103 + <flag name="novideo">Disable video codecs</flag>
104 + <!-- unused atm
105 + <flag name="g711plc">Enable G711 Packet Loss Concealment</flag>
106 + <flag name="msrp">Enable Message Session Relay Protocol</flag>
107 + <flag name="rfc4103">Enable RTP Payload for Text Conversation</flag>
108 + -->
109 + </use>
110 </pkgmetadata>
111
112
113
114 1.1 net-libs/opal/opal-3.6.2.ebuild
115
116 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/opal-3.6.2.ebuild?rev=1.1&view=markup
117 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/opal-3.6.2.ebuild?rev=1.1&content-type=text/plain
118
119 Index: opal-3.6.2.ebuild
120 ===================================================================
121 # Copyright 1999-2009 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123 # $Header: /var/cvsroot/gentoo-x86/net-libs/opal/opal-3.6.2.ebuild,v 1.1 2009/07/03 10:09:58 volkmar Exp $
124
125 EAPI="2"
126
127 inherit eutils autotools toolchain-funcs java-pkg-opt-2
128
129 DESCRIPTION="C++ class library normalising numerous telephony protocols"
130 HOMEPAGE="http://www.opalvoip.org/"
131 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
132 doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
133
134 LICENSE="MPL-1.0"
135 SLOT="0"
136 KEYWORDS="~ppc ~x86"
137 IUSE="+audio capi debug dns doc dtmf examples fax ffmpeg h224 h281 h323 iax ipv6
138 ivr ixj java ldap lid +plugins rfc4175 sbc sip sipim srtp ssl stats swig theora
139 +video vpb vxml wav x264 x264-static xml"
140
141 RDEPEND=">=net-libs/ptlib-2.0.0[stun,url,debug=,audio?,dns?,dtmf?,ipv6?,ldap?,ssl?,video?,vxml?,wav?,xml?]
142 >=media-libs/speex-1.2_beta
143 fax? ( net-libs/ptlib[asn] )
144 h323? ( net-libs/ptlib[asn] )
145 ivr? ( net-libs/ptlib[xml,vxml] )
146 java? ( >=virtual/jre-1.4 )
147 plugins? ( dev-libs/ilbc-rfc3951
148 media-sound/gsm
149 capi? ( net-dialup/capi4k-utils )
150 ffmpeg? ( >=media-video/ffmpeg-0.4.7[encode] )
151 ixj? ( sys-kernel/linux-headers )
152 sbc? ( media-libs/libsamplerate )
153 theora? ( media-libs/libtheora )
154 x264? ( >=media-video/ffmpeg-0.4.7
155 media-libs/x264 ) )
156 srtp? ( net-libs/libsrtp )"
157 DEPEND="${RDEPEND}
158 dev-util/pkgconfig
159 >=sys-devel/gcc-3
160 java? ( swig? ( dev-lang/swig[java] )
161 >=virtual/jdk-1.4 )"
162
163 # NOTES:
164 # ffmpeg[encode] is for h263 and mpeg4
165 # ssl, xml, vxml, ipv6, dtmf, ldap, audio, wav, dns and video are use flags
166 # herited from ptlib: feature is enabled if ptlib has enabled it
167 # however, disabling it if ptlib has it looks hard (coz of buildopts.h)
168 # forcing ptlib to disable it for opal is not a solution too
169 # atm, accepting the "auto-feature" looks like a good solution
170 # (asn is used for fax and config _only_ for examples)
171 # OPALDIR should not be used anymore but if a package still need it, create it
172
173 # TODO:
174 # force or merge some non-plugin USE flags wo/ deps ?
175 # celt is not in the tree and should be added
176
177 conditional_use_error_msg() {
178 eerror "To enable ${1} USE flag, you need ${2} USE flag to be enabled"
179 eerror "Please, enable ${2} or disable ${1}"
180 }
181
182 pkg_setup() {
183 local use_error=false
184
185 if [[ $(gcc-major-version) -lt 3 ]]; then
186 eerror "You need to use gcc-3 at least."
187 eerror "Please change gcc version with 'gcc-config'."
188 die "You need to use gcc-3 at least."
189 fi
190
191 # stop emerge if a conditional use flag is not respected
192
193 if use rfc4175 && ! use video; then
194 conditional_use_error_msg "rfc4175" "video"
195 use_error=true
196 fi
197
198 if use h281 && ! use h224; then
199 conditional_use_error_msg "h281" "h224"
200 use_error=true
201 fi
202
203 if use x264-static && ! use x264; then
204 conditional_use_error_msg "x264-static" "x264"
205 use_error=true
206 fi
207
208 if ${use_error}; then
209 eerror "Please see messages above and re-emerge ${PN} accordingly."
210 die "Conditional USE flag error."
211 fi
212
213 java-pkg-opt-2_pkg_setup
214 }
215
216 src_prepare() {
217 # move files from doc tarball into ${S}
218 if use doc; then
219 mv ../html . || die "moving doc files failed"
220 fi
221
222 # remove visual studio related files from samples/
223 if use examples; then
224 rm -f samples/*/*.vcproj
225 rm -f samples/*/*.sln
226 rm -f samples/*/*.dsp
227 rm -f samples/*/*.dsw
228 fi
229
230 # fix as-needed and aclocal, upstream patch 2795827
231 epatch "${FILESDIR}"/${P}-as-needed.patch
232
233 # use system ilbc, upstream patch 2795830
234 epatch "${FILESDIR}"/${P}-system-ilbc.patch
235
236 # fix sbc plugin link, upstream patch 2796087
237 epatch "${FILESDIR}"/${P}-sbc.patch
238
239 # upstream patch 2808915
240 epatch "${FILESDIR}"/${P}-jdkroot.patch
241
242 # h224 really needs h323 ?
243 # TODO: get a confirmation in ml
244 sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \
245 || die "sed failed"
246
247 eaclocal
248 eautoconf
249
250 # in plugins
251 cd plugins/
252 eaclocal
253 eautoconf
254 cd ..
255
256 # disable srtp if srtp is not enabled (prevent auto magic dep)
257 # upstream bug 2686485 (fixed in 3.7)
258 if ! use srtp; then
259 sed -i -e "s/OPAL_SRTP=yes/OPAL_SRTP=no/" configure \
260 || die "patching configure failed"
261 fi
262
263 # disable theora if theora is not enabled (prevent auto magic dep)
264 # upstream bug 2686488 (fixed in 3.7)
265 if ! use theora; then
266 sed -i -e "s/HAVE_THEORA=yes/HAVE_THEORA=no/" plugins/configure \
267 || die "patching plugins/configure failed"
268 fi
269
270 # disable mpeg4 and h263p if ffmpeg is not enabled (prevent auto magic dep)
271 # upstream bug 2686495 (fixed in 3.7)
272 if ! use ffmpeg; then
273 sed -i -e "s/HAVE_H263P=yes/HAVE_H263P=no/" plugins/configure \
274 || die "patching plugins/configure failed"
275 sed -i -e "s/HAVE_MPEG4=yes/HAVE_MPEG4=no/" plugins/configure \
276 || die "patching plugins/configure failed"
277 fi
278
279 # fix gsm wav49 support check, upstream bug 2686500 (fixed in 3.7)
280 if use plugins; then
281 sed -i -e "s:gsm\.h:gsm/gsm.h:" plugins/configure \
282 || die "patching plugins/configure failed"
283 fi
284
285 # fix automatic swig detection, upstream bug 2712521 (upstream reject it)
286 if ! use swig; then
287 sed -i -e "/^SWIG=/d" configure || die "patching configure failed"
288 fi
289
290 java-pkg-opt-2_src_prepare
291 }
292
293 src_configure() {
294 # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources
295 # versioncheck: check for ptlib version
296 # shared: should always be enabled for a lib
297 # localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs
298 # samples: only build some samples, useless
299 # libavcodec-stackalign-hack: prevent hack (default disable by upstream)
300 # default-to-full-capabilties: default enable by upstream
301 # aec: atm, only used when bundled speex, so it's painless for us
302 # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from
303 # http://zfoneproject.com/ wich is not in portage
304 # msrp: highly experimental
305 # spandsp: doesn't work with newest spandsp, upstream bug 2796047
306 # g711plc: force enable
307 # rfc4103: not really used, upstream bug 2795831
308 # t38, spandsp: merged in fax
309 # h450, h460, h501: merged in h323 (they are additional features of h323)
310 econf \
311 --enable-versioncheck \
312 --enable-shared \
313 --disable-zrtp \
314 --disable-localspeex \
315 --disable-localspeexdsp \
316 --disable-localgsm \
317 --disable-localilbc \
318 --disable-samples \
319 --disable-libavcodec-stackalign-hack \
320 --enable-default-to-full-capabilties \
321 --enable-aec \
322 --disable-msrp \
323 --disable-spandsp \
324 --enable-g711plc \
325 --enable-rfc4103 \
326 $(use_enable debug) \
327 $(use_enable capi) \
328 $(use_enable fax) \
329 $(use_enable fax t38) \
330 $(use_enable ffmpeg ffmpeg-h263) \
331 $(use_enable h224) \
332 $(use_enable h281) \
333 $(use_enable h323) \
334 $(use_enable h323 h450) \
335 $(use_enable h323 h460) \
336 $(use_enable h323 h501) \
337 $(use_enable iax) \
338 $(use_enable ivr) \
339 $(use_enable ixj) \
340 $(use_enable java) \
341 $(use_enable lid) \
342 $(use_enable plugins) \
343 $(use_enable rfc4175) \
344 $(use_enable sbc) \
345 $(use_enable sip) \
346 $(use_enable sipim) \
347 $(use_enable stats statistics) \
348 $(use_enable video) \
349 $(use_enable vpb) \
350 $(use_enable x264 h264) \
351 $(use_enable x264-static x264-link-static)
352 }
353
354 src_compile() {
355 local makeopts=""
356
357 use debug && makeopts="debug"
358
359 emake ${makeopts} || die "emake failed"
360 }
361
362 src_install() {
363 emake DESTDIR="${D}" install || die "emake install failed"
364
365 if use doc; then
366 dohtml -r html/* docs/* || die "dohtml failed"
367 fi
368
369 # ChangeLog is not standard
370 dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed"
371
372 if use examples; then
373 local exampledir="/usr/share/doc/${PF}/examples"
374 local basedir="samples"
375 local sampledirs="`ls ${basedir} --hide=configure* \
376 --hide=opal_samples.mak.in`"
377
378 # first, install files
379 insinto ${exampledir}/
380 doins ${basedir}/{configure*,opal_samples*} \
381 || die "doins failed"
382
383 # now, all examples
384 for x in ${sampledirs}; do
385 insinto ${exampledir}/${x}/
386 doins ${basedir}/${x}/* || die "doins failed"
387 done
388
389 # some examples need version.h
390 insinto "/usr/share/doc/${PF}/"
391 doins version.h || die "doins failed"
392 fi
393 }
394
395 pkg_postinst() {
396 if use examples; then
397 ewarn "All examples have been installed, some of them will not work on your system"
398 ewarn "it will depend of the enabled USE flags in ptlib and opal"
399 fi
400
401 if ! use plugins || ! use audio || ! use video; then
402 ewarn "You have disabled audio, video or plugins USE flags."
403 ewarn "Most audio/video features or plugins have been disabled silently"
404 ewarn "even if enabled via USE flags."
405 ewarn "Having a feature enabled via USE flag but disabled can lead to issues."
406 fi
407 }