Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/opal: ChangeLog opal-3.6.7.ebuild
Date: Thu, 18 Feb 2010 19:08:41
Message-Id: E1NiBjr-000873-Ni@stork.gentoo.org
1 pva 10/02/18 19:08:39
2
3 Modified: ChangeLog
4 Added: opal-3.6.7.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.60 net-libs/opal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?rev=1.60&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?rev=1.60&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/ChangeLog?r1=1.59&r2=1.60
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v
19 retrieving revision 1.59
20 retrieving revision 1.60
21 diff -u -r1.59 -r1.60
22 --- ChangeLog 17 Dec 2009 16:38:09 -0000 1.59
23 +++ ChangeLog 18 Feb 2010 19:08:39 -0000 1.60
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-libs/opal
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.59 2009/12/17 16:38:09 armin76 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.60 2010/02/18 19:08:39 pva Exp $
30 +
31 +*opal-3.6.7 (18 Feb 2010)
32 +
33 + 18 Feb 2010; Peter Volkov <pva@g.o> +opal-3.6.7.ebuild:
34 + Version bump.
35
36 17 Dec 2009; Raúl Porcel <armin76@g.o> opal-3.6.4.ebuild,
37 opal-3.6.4-r1.ebuild, opal-3.6.6.ebuild:
38
39
40
41 1.1 net-libs/opal/opal-3.6.7.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/opal-3.6.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/opal/opal-3.6.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opal-3.6.7.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/opal/opal-3.6.7.ebuild,v 1.1 2010/02/18 19:08:39 pva Exp $
51
52 EAPI="2"
53
54 inherit eutils autotools toolchain-funcs java-pkg-opt-2 flag-o-matic
55
56 DESCRIPTION="C++ class library normalising numerous telephony protocols"
57 HOMEPAGE="http://www.opalvoip.org/"
58 SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
59 doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
60
61 LICENSE="MPL-1.0"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
64 IUSE="+audio capi celt debug doc dtmf examples fax ffmpeg h224 h281 h323 iax
65 ipv6 ivr ixj java ldap lid +plugins sbc sip sipim srtp ssl stats swig theora
66 +video vpb vxml wav x264 x264-static xml"
67
68 RDEPEND=">=net-libs/ptlib-2.6.4[stun,debug=,audio?,dtmf?,ipv6?,ldap?,ssl?,video?,vxml?,wav?,xml?]
69 >=media-libs/speex-1.2_beta
70 fax? ( net-libs/ptlib[asn] )
71 h323? ( net-libs/ptlib[asn] )
72 ivr? ( net-libs/ptlib[xml,vxml] )
73 java? ( >=virtual/jre-1.4 )
74 plugins? ( dev-libs/ilbc-rfc3951
75 media-sound/gsm
76 capi? ( net-dialup/capi4k-utils )
77 celt? ( >=media-libs/celt-0.5.0 )
78 ffmpeg? ( >=media-video/ffmpeg-0.5[encode] )
79 ixj? ( sys-kernel/linux-headers )
80 sbc? ( media-libs/libsamplerate )
81 theora? ( media-libs/libtheora )
82 x264? ( >=media-video/ffmpeg-0.4.7
83 media-libs/x264 ) )
84 srtp? ( net-libs/libsrtp )"
85 DEPEND="${RDEPEND}
86 dev-util/pkgconfig
87 >=sys-devel/gcc-3
88 java? ( swig? ( || ( dev-lang/swig[java] >dev-lang/swig-1.3.36 ) )
89 >=virtual/jdk-1.4 )"
90
91 # NOTES:
92 # ffmpeg[encode] is for h263 and mpeg4
93 # ssl, xml, vxml, ipv6, dtmf, ldap, audio, wav, and video are use flags
94 # herited from ptlib: feature is enabled if ptlib has enabled it
95 # however, disabling it if ptlib has it looks hard (coz of buildopts.h)
96 # forcing ptlib to disable it for opal is not a solution too
97 # atm, accepting the "auto-feature" looks like a good solution
98 # (asn is used for fax and config _only_ for examples)
99 # OPALDIR should not be used anymore but if a package still need it, create it
100
101 pkg_setup() {
102 # workaround for bug 282838
103 append-flags "-fno-visibility-inlines-hidden"
104
105 # need >=gcc-3
106 if [[ $(gcc-major-version) -lt 3 ]]; then
107 eerror "You need to use gcc-3 at least."
108 eerror "Please change gcc version with 'gcc-config'."
109 die "You need to use gcc-3 at least."
110 fi
111
112 if use h281 && ! use h224; then
113 ewarn "You have enabled h281 but h224 is disabled."
114 ewarn "H.281 is over H.224 so you should enable h224 if you want h281."
115 fi
116
117 if use x264-static && ! use x264; then
118 ewarn "You have enabled x264-static but x264 is disabled."
119 ewarn "x264-static is going to be useless if x264 is not enabled."
120 fi
121
122 java-pkg-opt-2_pkg_setup
123 }
124
125 src_prepare() {
126 # remove visual studio related files from samples/
127 if use examples; then
128 rm -f samples/*/*.vcproj
129 rm -f samples/*/*.sln
130 rm -f samples/*/*.dsp
131 rm -f samples/*/*.dsw
132 fi
133
134 # upstream patch 2808915
135 epatch "${FILESDIR}"/${PN}-3.6.4-jdkroot.patch
136
137 # h224 really needs h323 ?
138 # TODO: get a confirmation in ml
139 sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \
140 || die "sed failed"
141
142 eaclocal
143 eautoconf
144
145 # in plugins
146 cd plugins/
147 eaclocal
148 eautoconf
149 cd ..
150
151 # disable srtp if srtp is not enabled (prevent auto magic dep)
152 # upstream bug 2686485 (fixed in 3.7)
153 if ! use srtp; then
154 sed -i -e "s/OPAL_SRTP=yes/OPAL_SRTP=no/" configure \
155 || die "patching configure failed"
156 fi
157
158 # disable theora if theora is not enabled (prevent auto magic dep)
159 # upstream bug 2686488 (fixed in 3.7)
160 if ! use theora; then
161 sed -i -e "s/HAVE_THEORA=yes/HAVE_THEORA=no/" plugins/configure \
162 || die "patching plugins/configure failed"
163 fi
164
165 # disable mpeg4 and h263p if ffmpeg is not enabled (prevent auto magic dep)
166 # upstream bug 2686495 (fixed in 3.7)
167 if ! use ffmpeg; then
168 sed -i -e "s/HAVE_H263P=yes/HAVE_H263P=no/" plugins/configure \
169 || die "patching plugins/configure failed"
170 sed -i -e "s/HAVE_MPEG4=yes/HAVE_MPEG4=no/" plugins/configure \
171 || die "patching plugins/configure failed"
172 fi
173
174 # disable celt if celt is not enabled (prevent auto magic dep)
175 # already in repository
176 if ! use celt; then
177 sed -i -e "s/HAVE_CELT=yes/HAVE_CELT=no/" plugins/configure \
178 || die "sed failed"
179 fi
180
181 # fix gsm wav49 support check, upstream bug 2686500 (fixed in 3.7)
182 if use plugins; then
183 sed -i -e "s:gsm\.h:gsm/gsm.h:" plugins/configure \
184 || die "patching plugins/configure failed"
185 fi
186
187 # fix automatic swig detection, upstream bug 2712521 (upstream reject it)
188 if ! use swig; then
189 sed -i -e "/^SWIG=/d" configure || die "patching configure failed"
190 fi
191
192 java-pkg-opt-2_src_prepare
193 }
194
195 src_configure() {
196 local forcedconf=""
197
198 # fix bug 277233, upstream bug 2820939
199 if use fax; then
200 forcedconf="${forcedconf} --enable-statistics"
201 fi
202
203 # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources
204 # versioncheck: check for ptlib version
205 # shared: should always be enabled for a lib
206 # localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs
207 # samples: only build some samples, useless
208 # libavcodec-stackalign-hack: prevent hack (default disable by upstream)
209 # default-to-full-capabilties: default enable by upstream
210 # aec: atm, only used when bundled speex, so it's painless for us
211 # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from
212 # http://zfoneproject.com/ wich is not in portage
213 # msrp: highly experimental
214 # spandsp: doesn't work with newest spandsp, upstream bug 2796047
215 # g711plc: force enable
216 # rfc4103: not really used, upstream bug 2795831
217 # t38, spandsp: merged in fax
218 # h450, h460, h501: merged in h323 (they are additional features of h323)
219 econf \
220 --enable-versioncheck \
221 --enable-shared \
222 --disable-zrtp \
223 --disable-localspeex \
224 --disable-localspeexdsp \
225 --disable-localgsm \
226 --disable-localilbc \
227 --disable-samples \
228 --disable-libavcodec-stackalign-hack \
229 --enable-default-to-full-capabilties \
230 --enable-aec \
231 --disable-msrp \
232 --disable-spandsp \
233 --enable-g711plc \
234 --enable-rfc4103 \
235 $(use_enable debug) \
236 $(use_enable capi) \
237 $(use_enable fax) \
238 $(use_enable fax t38) \
239 $(use_enable h224) \
240 $(use_enable h281) \
241 $(use_enable h323) \
242 $(use_enable h323 h450) \
243 $(use_enable h323 h460) \
244 $(use_enable h323 h501) \
245 $(use_enable iax) \
246 $(use_enable ivr) \
247 $(use_enable ixj) \
248 $(use_enable java) \
249 $(use_enable lid) \
250 $(use_enable plugins) \
251 $(use_enable sbc) \
252 $(use_enable sip) \
253 $(use_enable sipim) \
254 $(use_enable stats statistics) \
255 $(use_enable video) $(use_enable video rfc4175) \
256 $(use_enable vpb) \
257 $(use_enable x264 h264) \
258 $(use_enable x264-static x264-link-static) \
259 ${forcedconf}
260 }
261
262 src_compile() {
263 local makeopts=""
264
265 use debug && makeopts="debug"
266
267 emake ${makeopts} || die "emake failed"
268 }
269
270 src_install() {
271 emake DESTDIR="${D}" install || die "emake install failed"
272
273 if use doc; then
274 dohtml -r "${WORKDIR}"/html/* docs/* || die "dohtml failed"
275 fi
276
277 # ChangeLog is not standard
278 dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed"
279
280 if use examples; then
281 local exampledir="/usr/share/doc/${PF}/examples"
282 local basedir="samples"
283 local sampledirs="`ls ${basedir} --hide=configure* \
284 --hide=opal_samples.mak.in`"
285
286 # first, install files
287 insinto ${exampledir}/
288 doins ${basedir}/{configure*,opal_samples*} \
289 || die "doins failed"
290
291 # now, all examples
292 for x in ${sampledirs}; do
293 insinto ${exampledir}/${x}/
294 doins ${basedir}/${x}/* || die "doins failed"
295 done
296
297 # some examples need version.h
298 insinto "/usr/share/doc/${PF}/"
299 doins version.h || die "doins failed"
300 fi
301 }
302
303 pkg_postinst() {
304 if use examples; then
305 ewarn "All examples have been installed, some of them will not work on your system"
306 ewarn "it will depend of the enabled USE flags in ptlib and opal"
307 fi
308
309 if ! use plugins || ! use audio || ! use video; then
310 ewarn "You have disabled audio, video or plugins USE flags."
311 ewarn "Most audio/video features or plugins have been disabled silently"
312 ewarn "even if enabled via USE flags."
313 ewarn "Having a feature enabled via USE flag but disabled can lead to issues."
314 fi
315 }