1 |
volkmar 09/04/27 17:45:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mediastreamer-2.2.3_p1.ebuild |
5 |
Log: |
6 |
patched version of mediastreamer-2.2.3 with diff from bundled on in linphone-3.1.1 |
7 |
(Portage version: 2.1.6.7/cvs/Linux ppc) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 media-libs/mediastreamer/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/ChangeLog?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- ChangeLog 25 Apr 2009 00:29:08 -0000 1.6 |
23 |
+++ ChangeLog 27 Apr 2009 17:45:01 -0000 1.7 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for media-libs/mediastreamer |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.6 2009/04/25 00:29:08 volkmar Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/ChangeLog,v 1.7 2009/04/27 17:45:01 volkmar Exp $ |
29 |
+ |
30 |
+*mediastreamer-2.2.3_p1 (27 Apr 2009) |
31 |
+ |
32 |
+ 27 Apr 2009; Mounir Lamouri <volkmar@g.o> |
33 |
+ +files/mediastreamer-2.2.3_p1-arts.patch, |
34 |
+ +files/mediastreamer-2.2.3_p1-autodeps.patch, |
35 |
+ +mediastreamer-2.2.3_p1.ebuild: |
36 |
+ Add mediastreamer-2.2.3 with diff from bundled on in linphone-3.1.1 to make it |
37 |
+ working with it. |
38 |
|
39 |
*mediastreamer-2.2.3 (25 Apr 2009) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 media-libs/mediastreamer/mediastreamer-2.2.3_p1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: mediastreamer-2.2.3_p1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.2.3_p1.ebuild,v 1.1 2009/04/27 17:45:01 volkmar Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
|
57 |
inherit eutils autotools multilib |
58 |
|
59 |
MY_P=${P/_p1/} |
60 |
|
61 |
DESCRIPTION="Mediastreaming library for telephony application" |
62 |
HOMEPAGE="http://www.linphone.org/index.php/eng/code_review/mediastreamer2" |
63 |
SRC_URI="http://download.savannah.nongnu.org/releases/linphone/${PN}/${MY_P}.tar.gz |
64 |
mirror://gentoo/${P}-linphone-3.1.1.patch.tgz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~ppc" |
69 |
IUSE="alsa arts debug doc examples gsm ipv6 jack oss portaudio speex theora |
70 |
video X" |
71 |
|
72 |
RDEPEND=">=net-libs/ortp-0.15.0_p1 |
73 |
alsa? ( media-libs/alsa-lib ) |
74 |
arts? ( kde-base/arts ) |
75 |
gsm? ( media-sound/gsm ) |
76 |
jack? ( media-libs/libsamplerate |
77 |
media-sound/jack-audio-connection-kit ) |
78 |
portaudio? ( media-libs/portaudio ) |
79 |
speex? ( >=media-libs/speex-1.2_beta3 ) |
80 |
video? ( media-libs/libsdl[video,X] |
81 |
media-video/ffmpeg |
82 |
theora? ( media-libs/libtheora ) |
83 |
X? ( x11-libs/libX11 ) )" |
84 |
DEPEND="${RDEPEND} |
85 |
dev-util/pkgconfig |
86 |
doc? ( app-doc/doxygen )" |
87 |
|
88 |
S=${WORKDIR}/${MY_P} |
89 |
|
90 |
# TODO: |
91 |
# run-time test for arts support |
92 |
# run-time test for ipv6 : does it need ortp[ipv6] ? |
93 |
|
94 |
# NOTES: |
95 |
# in some way, v4l support is auto-magic but keeping it like that atm |
96 |
|
97 |
pkg_setup() { |
98 |
if ! use oss && ! use alsa && ! use arts && ! use jack && ! use portaudio; |
99 |
then |
100 |
eerror "You must enable at least oss, alsa, arts, jack or portaudio" |
101 |
eerror "Please, re-emerge ${PN} with one of this USE flag enabled" |
102 |
die |
103 |
fi |
104 |
|
105 |
if ! use video && ( use theora || use X ); then |
106 |
ewarn "X and theora support are enabled if video USE flag is enabled" |
107 |
ewarn "If you want X or theora support, consider re-emerge with USE=\"video\"" |
108 |
fi |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
epatch "${WORKDIR}"/${P}-linphone-3.1.1.patch |
113 |
|
114 |
# fixing doc, oss, jack, gsm, speex, theora and X auto-magic deps |
115 |
epatch "${FILESDIR}"/${P}-autodeps.patch |
116 |
|
117 |
# fix arts detection for gentoo |
118 |
epatch "${FILESDIR}"/${P}-arts.patch |
119 |
|
120 |
# too hard to have a flexible lib dir in a clean way |
121 |
sed -i -e "s:\(/usr/kde/3.5/\)lib:\1$(get_libdir):" configure.ac \ |
122 |
|| die "patching configure.ac failed" |
123 |
|
124 |
# respect user's CFLAGS |
125 |
sed -i -e "s:-O2::" configure.ac || die "patching configure.ac failed" |
126 |
|
127 |
# change default paths |
128 |
sed -i -e "s:\(\${prefix}/\)lib:\1$(get_libdir):" \ |
129 |
-e "s:\(prefix/share\):\1/${PN}:" configure.ac \ |
130 |
|| die "patching configure.ac failed" |
131 |
|
132 |
# fix html doc installation dir |
133 |
# sed -i -e "s:\$(pkgdocdir):\$(docdir):" help/Makefile.am \ |
134 |
# || die "patching help/Makefile.am failed" |
135 |
sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \ |
136 |
|| die "patching help/Makefile.am failed" |
137 |
|
138 |
eautoreconf |
139 |
|
140 |
# fix arts include |
141 |
sed -i -e "s:kde/\(artsc/artsc.h\):\1:" src/arts.c \ |
142 |
|| die "patching src/arts.c failed" |
143 |
|
144 |
# don't build examples in tests/ |
145 |
sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \ |
146 |
|| die "patching Makefile.in failed" |
147 |
} |
148 |
|
149 |
src_configure() { |
150 |
# strict: don't want -Werror |
151 |
# macsnd and macaqsnd: macosx related |
152 |
# external-ortp: don't use bundled libs |
153 |
econf \ |
154 |
--htmldir=/usr/share/doc/${PF}/html \ |
155 |
--datadir=/usr/share/${PN} \ |
156 |
--libdir=/usr/$(get_libdir) \ |
157 |
--disable-strict \ |
158 |
--disable-macsnd \ |
159 |
--disable-macaqsnd \ |
160 |
--enable-external-ortp \ |
161 |
--disable-dependency-tracking \ |
162 |
$(use_enable alsa) \ |
163 |
$(use_enable arts artsc) \ |
164 |
$(use_enable debug) \ |
165 |
$(use_enable doc) \ |
166 |
$(use_enable gsm) \ |
167 |
$(use_enable ipv6) \ |
168 |
$(use_enable jack) \ |
169 |
$(use_enable oss) \ |
170 |
$(use_enable portaudio) \ |
171 |
$(use_enable speex) \ |
172 |
$(use_enable theora) \ |
173 |
$(use_enable video) \ |
174 |
$(use_enable X x11) |
175 |
} |
176 |
|
177 |
src_install() { |
178 |
emake DESTDIR="${D}" install || die "emake install failed" |
179 |
|
180 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
181 |
|
182 |
if use examples; then |
183 |
insinto /usr/share/doc/${PF}/examples |
184 |
doins tests/*.c || die "doins failed" |
185 |
fi |
186 |
} |