1 |
commit: 0d289e33fe5adf335701c8fc1e9c3494e1523ec8 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 19 17:03:28 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 19 17:03:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d289e33 |
7 |
|
8 |
media-libs/mediastreamer: Add missing media-libs/speexdsp DEPEND |
9 |
|
10 |
Closes: https://bugs.gentoo.org/611762 |
11 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
12 |
|
13 |
.../mediastreamer/mediastreamer-2.9.0-r2.ebuild | 177 +++++++++++++++++++++ |
14 |
1 file changed, 177 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild b/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..cdaaf69423c |
19 |
--- /dev/null |
20 |
+++ b/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild |
21 |
@@ -0,0 +1,177 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit autotools eutils |
28 |
+ |
29 |
+DESCRIPTION="Mediastreaming library for telephony application" |
30 |
+HOMEPAGE="http://www.linphone.org/" |
31 |
+SRC_URI="mirror://nongnu/linphone/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0/3" |
35 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
36 |
+# Many cameras will not work or will crash an application if mediastreamer2 is |
37 |
+# not built with v4l2 support (taken from configure.ac) |
38 |
+# TODO: run-time test for ipv6: does it really need ortp[ipv6] ? |
39 |
+IUSE="+alsa amr bindist coreaudio debug doc examples +filters g726 g729 gsm ilbc |
40 |
+ ipv6 libav ntp-timestamp opengl opus +ortp oss pcap portaudio pulseaudio sdl |
41 |
+ silk +speex static-libs test theora upnp v4l video x264 X" |
42 |
+ |
43 |
+REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio ) |
44 |
+ video? ( || ( opengl sdl X ) ) |
45 |
+ theora? ( video ) |
46 |
+ X? ( video ) |
47 |
+ v4l? ( video ) |
48 |
+ opengl? ( video )" |
49 |
+ |
50 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
51 |
+ g726? ( >=media-libs/spandsp-0.0.6_pre1 ) |
52 |
+ gsm? ( media-sound/gsm ) |
53 |
+ opus? ( media-libs/opus ) |
54 |
+ ortp? ( >=net-libs/ortp-0.21.0[ipv6?] ) |
55 |
+ pcap? ( sys-libs/libcap ) |
56 |
+ portaudio? ( media-libs/portaudio ) |
57 |
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) |
58 |
+ speex? ( |
59 |
+ >=media-libs/speex-1.2.0 |
60 |
+ media-libs/speexdsp |
61 |
+ ) |
62 |
+ upnp? ( net-libs/libupnp ) |
63 |
+ video? ( |
64 |
+ libav? ( >=media-video/libav-9.12:0= ) |
65 |
+ !libav? ( >=media-video/ffmpeg-1.2.6-r1:0= ) |
66 |
+ |
67 |
+ opengl? ( media-libs/glew |
68 |
+ virtual/opengl |
69 |
+ x11-libs/libX11 ) |
70 |
+ v4l? ( media-libs/libv4l |
71 |
+ sys-kernel/linux-headers ) |
72 |
+ theora? ( media-libs/libtheora ) |
73 |
+ sdl? ( media-libs/libsdl[video,X] ) |
74 |
+ X? ( x11-libs/libX11 |
75 |
+ x11-libs/libXv ) )" |
76 |
+DEPEND="${RDEPEND} |
77 |
+ dev-util/intltool |
78 |
+ virtual/pkgconfig |
79 |
+ doc? ( app-doc/doxygen ) |
80 |
+ opengl? ( dev-util/xxdi ) |
81 |
+ test? ( >=dev-util/cunit-2.1_p2[ncurses] ) |
82 |
+ X? ( x11-proto/videoproto )" |
83 |
+ |
84 |
+PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) ) |
85 |
+ g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) ) |
86 |
+ ilbc? ( media-plugins/mediastreamer-ilbc ) |
87 |
+ video? ( x264? ( media-plugins/mediastreamer-x264 ) ) |
88 |
+ silk? ( !bindist? ( media-plugins/mediastreamer-silk ) )" |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ # variable causes "command not found" warning and is not |
92 |
+ # needed anyway |
93 |
+ sed -i \ |
94 |
+ -e 's/$(ACLOCAL_MACOS_FLAGS)//' \ |
95 |
+ Makefile.am || die |
96 |
+ |
97 |
+ # respect user's CFLAGS |
98 |
+ sed -i \ |
99 |
+ -e "s:-O2::;s: -g::" \ |
100 |
+ configure.ac || die "patching configure.ac failed" |
101 |
+ |
102 |
+ # change default paths |
103 |
+ sed -i \ |
104 |
+ -e "s:\(prefix/share\):\1/${PN}:" \ |
105 |
+ configure.ac || die "patching configure.ac failed" |
106 |
+ |
107 |
+ # fix doc installation dir |
108 |
+ sed -i \ |
109 |
+ -e "s:\$(pkgdocdir):\$(docdir):" \ |
110 |
+ help/Makefile.am || die "patching help/Makefile.am failed" |
111 |
+ |
112 |
+ # fix html installation dir |
113 |
+ sed -i \ |
114 |
+ -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" \ |
115 |
+ help/Makefile.am || die "patching help/Makefile.am failed" |
116 |
+ |
117 |
+ # linux/videodev.h dropped in 2.6.38 |
118 |
+ sed -i \ |
119 |
+ -e 's:linux/videodev.h ::' \ |
120 |
+ configure.ac || die |
121 |
+ |
122 |
+ epatch "${FILESDIR}/${P}-v4l-automagic.patch" \ |
123 |
+ "${FILESDIR}/${P}-libav9.patch" \ |
124 |
+ "${FILESDIR}/${P}-underlinking.patch" \ |
125 |
+ "${FILESDIR}/${P}-tests.patch" \ |
126 |
+ "${FILESDIR}/${P}-xxd.patch" \ |
127 |
+ "${FILESDIR}/${P}-ffmpeg3.patch" |
128 |
+ |
129 |
+ eautoreconf |
130 |
+} |
131 |
+ |
132 |
+src_configure() { |
133 |
+ local myeconfargs=( |
134 |
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html |
135 |
+ --datadir="${EPREFIX}"/usr/share/${PN} |
136 |
+ # arts is deprecated |
137 |
+ --disable-artsc |
138 |
+ # don't want -Werror |
139 |
+ --disable-strict |
140 |
+ --disable-libv4l1 |
141 |
+ # don't use bundled libs |
142 |
+ --enable-external-ortp |
143 |
+ $(use_enable alsa) |
144 |
+ $(use_enable pulseaudio) |
145 |
+ $(use_enable coreaudio macsnd) |
146 |
+ $(use_enable debug) |
147 |
+ $(use_enable filters) |
148 |
+ $(use_enable g726 spandsp) |
149 |
+ $(use_enable gsm) |
150 |
+ $(use_enable ipv6) |
151 |
+ $(use_enable ntp-timestamp) |
152 |
+ $(use_enable opengl glx) |
153 |
+ $(use_enable opus) |
154 |
+ $(use_enable ortp) |
155 |
+ $(use_enable oss) |
156 |
+ $(use_enable pcap) |
157 |
+ $(use_enable portaudio) |
158 |
+ $(use_enable speex) |
159 |
+ $(use_enable static-libs static) |
160 |
+ $(use_enable theora) |
161 |
+ $(use_enable upnp) |
162 |
+ $(use_enable video) |
163 |
+ $(use_enable v4l) |
164 |
+ $(use_enable v4l libv4l2) |
165 |
+ $(use_enable sdl) |
166 |
+ $(use_enable X x11) |
167 |
+ $(use_enable X xv) |
168 |
+ |
169 |
+ $(use doc || echo ac_cv_path_DOXYGEN=false) |
170 |
+ ) |
171 |
+ |
172 |
+ # Mac OS X Audio Queue is an audio recording facility, available on |
173 |
+ # 10.5 (Leopard, Darwin9) and onward |
174 |
+ if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]] |
175 |
+ then |
176 |
+ myeconfargs+=( --enable-macaqsnd ) |
177 |
+ else |
178 |
+ myeconfargs+=( --disable-macaqsnd ) |
179 |
+ fi |
180 |
+ |
181 |
+ econf "${myeconfargs[@]}" |
182 |
+} |
183 |
+ |
184 |
+src_test() { |
185 |
+ default |
186 |
+ cd tester || die |
187 |
+ ./mediastreamer2_tester || die |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ default |
192 |
+ prune_libtool_files |
193 |
+ |
194 |
+ if use examples; then |
195 |
+ insinto /usr/share/doc/${PF}/examples |
196 |
+ doins tester/*.c |
197 |
+ fi |
198 |
+} |