Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/mediastreamer: mediastreamer-2.9.0-r1.ebuild ChangeLog
Date: Sat, 07 Feb 2015 20:14:09
Message-Id: 20150207201352.14B6511457@oystercatcher.gentoo.org
1 mgorny 15/02/07 20:13:52
2
3 Modified: ChangeLog
4 Added: mediastreamer-2.9.0-r1.ebuild
5 Log:
6 Replace the virtual with USE=libav.
7
8 (Portage version: 2.2.16/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.78 media-libs/mediastreamer/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.78&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.78&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mediastreamer/ChangeLog?r1=1.77&r2=1.78
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v
20 retrieving revision 1.77
21 retrieving revision 1.78
22 diff -u -r1.77 -r1.78
23 --- ChangeLog 12 Nov 2014 13:59:03 -0000 1.77
24 +++ ChangeLog 7 Feb 2015 20:13:52 -0000 1.78
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/mediastreamer
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.77 2014/11/12 13:59:03 bircoph Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.78 2015/02/07 20:13:52 mgorny Exp $
31 +
32 +*mediastreamer-2.9.0-r1 (07 Feb 2015)
33 +
34 + 07 Feb 2015; Michał Górny <mgorny@g.o> +mediastreamer-2.9.0-r1.ebuild:
35 + Replace the virtual with USE=libav.
36
37 12 Nov 2014; Andrew Savchenko <bircoph@g.o> metadata.xml:
38 Update e-mail :/.
39
40
41
42 1.1 media-libs/mediastreamer/mediastreamer-2.9.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.9.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.9.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mediastreamer-2.9.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.9.0-r1.ebuild,v 1.1 2015/02/07 20:13:52 mgorny Exp $
52
53 EAPI=5
54
55 inherit autotools eutils
56
57 DESCRIPTION="Mediastreaming library for telephony application"
58 HOMEPAGE="http://www.linphone.org/"
59 SRC_URI="mirror://nongnu/linphone/${PN}/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0/3"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 # Many cameras will not work or will crash an application if mediastreamer2 is
65 # not built with v4l2 support (taken from configure.ac)
66 # TODO: run-time test for ipv6: does it really need ortp[ipv6] ?
67 IUSE="+alsa amr bindist coreaudio debug doc examples +filters g726 g729 gsm ilbc
68 ipv6 libav ntp-timestamp opengl opus +ortp oss pcap portaudio pulseaudio sdl
69 silk +speex static-libs test theora upnp v4l video x264 X"
70
71 REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio )
72 video? ( || ( opengl sdl X ) )
73 theora? ( video )
74 X? ( video )
75 v4l? ( video )
76 opengl? ( video )"
77
78 RDEPEND="alsa? ( media-libs/alsa-lib )
79 g726? ( >=media-libs/spandsp-0.0.6_pre1 )
80 gsm? ( media-sound/gsm )
81 opus? ( media-libs/opus )
82 ortp? ( >=net-libs/ortp-0.21.0[ipv6?] )
83 pcap? ( sys-libs/libcap )
84 portaudio? ( media-libs/portaudio )
85 pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
86 speex? ( >=media-libs/speex-1.2_beta3 )
87 upnp? ( net-libs/libupnp )
88 video? (
89 libav? ( >=media-video/libav-9.12:0= )
90 !libav? ( >=media-video/ffmpeg-1.2.6-r1:0= )
91
92 opengl? ( media-libs/glew
93 virtual/opengl
94 x11-libs/libX11 )
95 v4l? ( media-libs/libv4l
96 sys-kernel/linux-headers )
97 theora? ( media-libs/libtheora )
98 sdl? ( media-libs/libsdl[video,X] )
99 X? ( x11-libs/libX11
100 x11-libs/libXv ) )"
101 DEPEND="${RDEPEND}
102 dev-util/intltool
103 virtual/pkgconfig
104 doc? ( app-doc/doxygen )
105 opengl? ( dev-util/xxdi )
106 test? ( >=dev-util/cunit-2.1_p2[ncurses] )
107 X? ( x11-proto/videoproto )"
108
109 PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) )
110 g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) )
111 ilbc? ( media-plugins/mediastreamer-ilbc )
112 video? ( x264? ( media-plugins/mediastreamer-x264 ) )
113 silk? ( !bindist? ( media-plugins/mediastreamer-silk ) )"
114
115 src_prepare() {
116 # variable causes "command not found" warning and is not
117 # needed anyway
118 sed -i \
119 -e 's/$(ACLOCAL_MACOS_FLAGS)//' \
120 Makefile.am || die
121
122 # respect user's CFLAGS
123 sed -i \
124 -e "s:-O2::;s: -g::" \
125 configure.ac || die "patching configure.ac failed"
126
127 # change default paths
128 sed -i \
129 -e "s:\(prefix/share\):\1/${PN}:" \
130 configure.ac || die "patching configure.ac failed"
131
132 # fix doc installation dir
133 sed -i \
134 -e "s:\$(pkgdocdir):\$(docdir):" \
135 help/Makefile.am || die "patching help/Makefile.am failed"
136
137 # fix html installation dir
138 sed -i \
139 -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" \
140 help/Makefile.am || die "patching help/Makefile.am failed"
141
142 # linux/videodev.h dropped in 2.6.38
143 sed -i \
144 -e 's:linux/videodev.h ::' \
145 configure.ac || die
146
147 epatch "${FILESDIR}/${P}-v4l-automagic.patch" \
148 "${FILESDIR}/${P}-libav9.patch" \
149 "${FILESDIR}/${P}-underlinking.patch" \
150 "${FILESDIR}/${P}-tests.patch" \
151 "${FILESDIR}/${P}-xxd.patch"
152
153 eautoreconf
154 }
155
156 src_configure() {
157 local myeconfargs=(
158 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
159 --datadir="${EPREFIX}"/usr/share/${PN}
160 # arts is deprecated
161 --disable-artsc
162 # don't want -Werror
163 --disable-strict
164 --disable-libv4l1
165 # don't use bundled libs
166 --enable-external-ortp
167 $(use_enable alsa)
168 $(use_enable pulseaudio)
169 $(use_enable coreaudio macsnd)
170 $(use_enable debug)
171 $(use_enable filters)
172 $(use_enable g726 spandsp)
173 $(use_enable gsm)
174 $(use_enable ipv6)
175 $(use_enable ntp-timestamp)
176 $(use_enable opengl glx)
177 $(use_enable opus)
178 $(use_enable ortp)
179 $(use_enable oss)
180 $(use_enable pcap)
181 $(use_enable portaudio)
182 $(use_enable speex)
183 $(use_enable static-libs static)
184 $(use_enable theora)
185 $(use_enable upnp)
186 $(use_enable video)
187 $(use_enable v4l)
188 $(use_enable v4l libv4l2)
189 $(use_enable sdl)
190 $(use_enable X x11)
191 $(use_enable X xv)
192
193 $(use doc || echo ac_cv_path_DOXYGEN=false)
194 )
195
196 # Mac OS X Audio Queue is an audio recording facility, available on
197 # 10.5 (Leopard, Darwin9) and onward
198 if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]]
199 then
200 myeconfargs+=( --enable-macaqsnd )
201 else
202 myeconfargs+=( --disable-macaqsnd )
203 fi
204
205 econf "${myeconfargs[@]}"
206 }
207
208 src_test() {
209 default
210 cd tester || die
211 ./mediastreamer2_tester || die
212 }
213
214 src_install() {
215 default
216 prune_libtool_files
217
218 if use examples; then
219 insinto /usr/share/doc/${PF}/examples
220 doins tester/*.c
221 fi
222 }