1 |
pva 10/08/19 17:07:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opal-3.6.8.ebuild |
5 |
Log: |
6 |
Version bump, bug #326469 thank Vladimir for report. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.66 net-libs/opal/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/opal/ChangeLog?rev=1.66&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/opal/ChangeLog?rev=1.66&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/opal/ChangeLog?r1=1.65&r2=1.66 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v |
19 |
retrieving revision 1.65 |
20 |
retrieving revision 1.66 |
21 |
diff -u -r1.65 -r1.66 |
22 |
--- ChangeLog 24 Jul 2010 16:47:03 -0000 1.65 |
23 |
+++ ChangeLog 19 Aug 2010 17:07:27 -0000 1.66 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-libs/opal |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.65 2010/07/24 16:47:03 pchrist Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/ChangeLog,v 1.66 2010/08/19 17:07:27 pva Exp $ |
29 |
+ |
30 |
+*opal-3.6.8 (19 Aug 2010) |
31 |
+ |
32 |
+ 19 Aug 2010; Peter Volkov <pva@g.o> +opal-3.6.8.ebuild: |
33 |
+ Version bump, bug #326469 thank Vladimir for report. |
34 |
|
35 |
24 Jul 2010; Panagiotis Christopoulos <pchrist@g.o> |
36 |
opal-3.6.4.ebuild, opal-3.6.4-r1.ebuild, opal-3.6.6.ebuild, |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-libs/opal/opal-3.6.8.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/opal/opal-3.6.8.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/opal/opal-3.6.8.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: opal-3.6.8.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/opal-3.6.8.ebuild,v 1.1 2010/08/19 17:07:27 pva Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
inherit eutils autotools toolchain-funcs java-pkg-opt-2 flag-o-matic |
54 |
|
55 |
HTMLV="3.6.7" # There is no 3.6.8 release of htmldoc |
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/${PN}-${HTMLV}-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.6[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 ) |
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 |
append-flags -D__STDC_CONSTANT_MACROS #324323 |
106 |
|
107 |
# need >=gcc-3 |
108 |
if [[ $(gcc-major-version) -lt 3 ]]; then |
109 |
eerror "You need to use gcc-3 at least." |
110 |
eerror "Please change gcc version with 'gcc-config'." |
111 |
die "You need to use gcc-3 at least." |
112 |
fi |
113 |
|
114 |
if use h281 && ! use h224; then |
115 |
ewarn "You have enabled h281 but h224 is disabled." |
116 |
ewarn "H.281 is over H.224 so you should enable h224 if you want h281." |
117 |
fi |
118 |
|
119 |
if use x264-static && ! use x264; then |
120 |
ewarn "You have enabled x264-static but x264 is disabled." |
121 |
ewarn "x264-static is going to be useless if x264 is not enabled." |
122 |
fi |
123 |
|
124 |
java-pkg-opt-2_pkg_setup |
125 |
} |
126 |
|
127 |
src_prepare() { |
128 |
# remove visual studio related files from samples/ |
129 |
if use examples; then |
130 |
rm -f samples/*/*.vcproj |
131 |
rm -f samples/*/*.sln |
132 |
rm -f samples/*/*.dsp |
133 |
rm -f samples/*/*.dsw |
134 |
fi |
135 |
|
136 |
# upstream patch 2808915 |
137 |
epatch "${FILESDIR}"/${PN}-3.6.4-jdkroot.patch |
138 |
|
139 |
# h224 really needs h323 ? |
140 |
# TODO: get a confirmation in ml |
141 |
sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \ |
142 |
|| die "sed failed" |
143 |
|
144 |
eaclocal |
145 |
eautoconf |
146 |
|
147 |
# in plugins |
148 |
cd plugins/ |
149 |
eaclocal |
150 |
eautoconf |
151 |
cd .. |
152 |
|
153 |
# disable srtp if srtp is not enabled (prevent auto magic dep) |
154 |
# upstream bug 2686485 (fixed in 3.7) |
155 |
if ! use srtp; then |
156 |
sed -i -e "s/OPAL_SRTP=yes/OPAL_SRTP=no/" configure \ |
157 |
|| die "patching configure failed" |
158 |
fi |
159 |
|
160 |
# disable theora if theora is not enabled (prevent auto magic dep) |
161 |
# upstream bug 2686488 (fixed in 3.7) |
162 |
if ! use theora; then |
163 |
sed -i -e "s/HAVE_THEORA=yes/HAVE_THEORA=no/" plugins/configure \ |
164 |
|| die "patching plugins/configure failed" |
165 |
fi |
166 |
|
167 |
# disable mpeg4 and h263p if ffmpeg is not enabled (prevent auto magic dep) |
168 |
# upstream bug 2686495 (fixed in 3.7) |
169 |
if ! use ffmpeg; then |
170 |
sed -i -e "s/HAVE_H263P=yes/HAVE_H263P=no/" plugins/configure \ |
171 |
|| die "patching plugins/configure failed" |
172 |
sed -i -e "s/HAVE_MPEG4=yes/HAVE_MPEG4=no/" plugins/configure \ |
173 |
|| die "patching plugins/configure failed" |
174 |
fi |
175 |
|
176 |
# disable celt if celt is not enabled (prevent auto magic dep) |
177 |
# already in repository |
178 |
if ! use celt; then |
179 |
sed -i -e "s/HAVE_CELT=yes/HAVE_CELT=no/" plugins/configure \ |
180 |
|| die "sed failed" |
181 |
fi |
182 |
|
183 |
# fix gsm wav49 support check, upstream bug 2686500 (fixed in 3.7) |
184 |
if use plugins; then |
185 |
sed -i -e "s:gsm\.h:gsm/gsm.h:" plugins/configure \ |
186 |
|| die "patching plugins/configure failed" |
187 |
fi |
188 |
|
189 |
# fix automatic swig detection, upstream bug 2712521 (upstream reject it) |
190 |
if ! use swig; then |
191 |
sed -i -e "/^SWIG=/d" configure || die "patching configure failed" |
192 |
fi |
193 |
|
194 |
java-pkg-opt-2_src_prepare |
195 |
} |
196 |
|
197 |
src_configure() { |
198 |
local forcedconf="" |
199 |
|
200 |
# fix bug 277233, upstream bug 2820939 |
201 |
if use fax; then |
202 |
forcedconf="${forcedconf} --enable-statistics" |
203 |
fi |
204 |
|
205 |
# --with-libavcodec-source-dir should _not_ be set, it's for trunk sources |
206 |
# versioncheck: check for ptlib version |
207 |
# shared: should always be enabled for a lib |
208 |
# localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs |
209 |
# samples: only build some samples, useless |
210 |
# libavcodec-stackalign-hack: prevent hack (default disable by upstream) |
211 |
# default-to-full-capabilties: default enable by upstream |
212 |
# aec: atm, only used when bundled speex, so it's painless for us |
213 |
# zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from |
214 |
# http://zfoneproject.com/ wich is not in portage |
215 |
# msrp: highly experimental |
216 |
# spandsp: doesn't work with newest spandsp, upstream bug 2796047 |
217 |
# g711plc: force enable |
218 |
# rfc4103: not really used, upstream bug 2795831 |
219 |
# t38, spandsp: merged in fax |
220 |
# h450, h460, h501: merged in h323 (they are additional features of h323) |
221 |
econf \ |
222 |
--enable-versioncheck \ |
223 |
--enable-shared \ |
224 |
--disable-zrtp \ |
225 |
--disable-localspeex \ |
226 |
--disable-localspeexdsp \ |
227 |
--disable-localgsm \ |
228 |
--disable-localilbc \ |
229 |
--disable-samples \ |
230 |
--disable-libavcodec-stackalign-hack \ |
231 |
--enable-default-to-full-capabilties \ |
232 |
--enable-aec \ |
233 |
--disable-msrp \ |
234 |
--disable-spandsp \ |
235 |
--enable-g711plc \ |
236 |
--enable-rfc4103 \ |
237 |
$(use_enable debug) \ |
238 |
$(use_enable capi) \ |
239 |
$(use_enable fax) \ |
240 |
$(use_enable fax t38) \ |
241 |
$(use_enable h224) \ |
242 |
$(use_enable h281) \ |
243 |
$(use_enable h323) \ |
244 |
$(use_enable h323 h450) \ |
245 |
$(use_enable h323 h460) \ |
246 |
$(use_enable h323 h501) \ |
247 |
$(use_enable iax) \ |
248 |
$(use_enable ivr) \ |
249 |
$(use_enable ixj) \ |
250 |
$(use_enable java) \ |
251 |
$(use_enable lid) \ |
252 |
$(use_enable plugins) \ |
253 |
$(use_enable sbc) \ |
254 |
$(use_enable sip) \ |
255 |
$(use_enable sipim) \ |
256 |
$(use_enable stats statistics) \ |
257 |
$(use_enable video) $(use_enable video rfc4175) \ |
258 |
$(use_enable vpb) \ |
259 |
$(use_enable x264 h264) \ |
260 |
$(use_enable x264-static x264-link-static) \ |
261 |
${forcedconf} |
262 |
} |
263 |
|
264 |
src_compile() { |
265 |
local makeopts="" |
266 |
|
267 |
use debug && makeopts="debug" |
268 |
|
269 |
emake ${makeopts} || die "emake failed" |
270 |
} |
271 |
|
272 |
src_install() { |
273 |
emake DESTDIR="${D}" install || die "emake install failed" |
274 |
|
275 |
if use doc; then |
276 |
dohtml -r "${WORKDIR}"/html/* docs/* || die "dohtml failed" |
277 |
fi |
278 |
|
279 |
# ChangeLog is not standard |
280 |
dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed" |
281 |
|
282 |
if use examples; then |
283 |
local exampledir="/usr/share/doc/${PF}/examples" |
284 |
local basedir="samples" |
285 |
local sampledirs="`ls ${basedir} --hide=configure* \ |
286 |
--hide=opal_samples.mak.in`" |
287 |
|
288 |
# first, install files |
289 |
insinto ${exampledir}/ |
290 |
doins ${basedir}/{configure*,opal_samples*} \ |
291 |
|| die "doins failed" |
292 |
|
293 |
# now, all examples |
294 |
for x in ${sampledirs}; do |
295 |
insinto ${exampledir}/${x}/ |
296 |
doins ${basedir}/${x}/* || die "doins failed" |
297 |
done |
298 |
|
299 |
# some examples need version.h |
300 |
insinto "/usr/share/doc/${PF}/" |
301 |
doins version.h || die "doins failed" |
302 |
fi |
303 |
} |
304 |
|
305 |
pkg_postinst() { |
306 |
if use examples; then |
307 |
ewarn "All examples have been installed, some of them will not work on your system" |
308 |
ewarn "it will depend of the enabled USE flags in ptlib and opal" |
309 |
fi |
310 |
|
311 |
if ! use plugins || ! use audio || ! use video; then |
312 |
ewarn "You have disabled audio, video or plugins USE flags." |
313 |
ewarn "Most audio/video features or plugins have been disabled silently" |
314 |
ewarn "even if enabled via USE flags." |
315 |
ewarn "Having a feature enabled via USE flag but disabled can lead to issues." |
316 |
fi |
317 |
} |