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