Gentoo Archives: gentoo-commits

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