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