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