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