1 |
ford_prefect 12/05/11 15:16:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pulseaudio-2.0.ebuild |
5 |
Removed: pulseaudio-1.99.2.ebuild |
6 |
Log: |
7 |
Add PulseAudio 2.0 (adds dynamic sample rate updates, jack detection, major echo canceller improvements, virtual surround, Xen (TBD). Drop 1.99.2. |
8 |
|
9 |
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.270 media-sound/pulseaudio/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.270&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.270&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.269&r2=1.270 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v |
21 |
retrieving revision 1.269 |
22 |
retrieving revision 1.270 |
23 |
diff -u -r1.269 -r1.270 |
24 |
--- ChangeLog 5 May 2012 08:49:55 -0000 1.269 |
25 |
+++ ChangeLog 11 May 2012 15:16:04 -0000 1.270 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for media-sound/pulseaudio |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.269 2012/05/05 08:49:55 mgorny Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.270 2012/05/11 15:16:04 ford_prefect Exp $ |
31 |
+ |
32 |
+*pulseaudio-2.0 (11 May 2012) |
33 |
+ |
34 |
+ 11 May 2012; Arun Raghavan <ford_prefect@g.o> |
35 |
+ -pulseaudio-1.99.2.ebuild, +pulseaudio-2.0.ebuild: |
36 |
+ Add PulseAudio 2.0 (adds dynamic sample rate updates, jack detection, major |
37 |
+ echo canceller improvements, virtual surround, Xen (TBD). Drop 1.99.2. |
38 |
|
39 |
05 May 2012; Michał Górny <mgorny@g.o> pulseaudio-0.9.22.ebuild, |
40 |
pulseaudio-0.9.22-r2.ebuild, pulseaudio-0.9.23-r1.ebuild, |
41 |
|
42 |
|
43 |
|
44 |
1.1 media-sound/pulseaudio/pulseaudio-2.0.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pulseaudio-2.0.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0.ebuild,v 1.1 2012/05/11 15:16:04 ford_prefect Exp $ |
54 |
|
55 |
EAPI=4 |
56 |
|
57 |
inherit eutils libtool flag-o-matic versionator |
58 |
|
59 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
60 |
HOMEPAGE="http://www.pulseaudio.org/" |
61 |
|
62 |
SRC_URI="http://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
63 |
|
64 |
# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
65 |
# library and can link to gdbm and other GPL-only libraries. In this |
66 |
# cases, we have a fully GPL-2 package. Leaving the rest of the |
67 |
# GPL-forcing USE flags for those who use them. |
68 |
LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
71 |
IUSE="+alsa avahi +caps equalizer jack lirc oss tcpd +X dbus libsamplerate gnome bluetooth +asyncns +glib test doc +udev ipv6 system-wide realtime +orc ssl +gdbm +webrtc-aec" |
72 |
|
73 |
RDEPEND=">=media-libs/libsndfile-1.0.20 |
74 |
X? ( |
75 |
>=x11-libs/libX11-1.4.0 |
76 |
>=x11-libs/libxcb-1.6 |
77 |
>=x11-libs/xcb-util-0.3.1 |
78 |
x11-libs/libSM |
79 |
x11-libs/libICE |
80 |
x11-libs/libXtst |
81 |
) |
82 |
caps? ( sys-libs/libcap ) |
83 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
84 |
alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
85 |
glib? ( >=dev-libs/glib-2.4.0 ) |
86 |
avahi? ( >=net-dns/avahi-0.6.12[dbus] ) |
87 |
jack? ( >=media-sound/jack-audio-connection-kit-0.117 ) |
88 |
tcpd? ( sys-apps/tcp-wrappers ) |
89 |
lirc? ( app-misc/lirc ) |
90 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
91 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
92 |
bluetooth? ( |
93 |
>=net-wireless/bluez-4 |
94 |
>=sys-apps/dbus-1.0.0 |
95 |
) |
96 |
asyncns? ( net-libs/libasyncns ) |
97 |
udev? ( || ( >=sys-fs/udev-171[hwdb] >=sys-fs/udev-143[extras] ) ) |
98 |
realtime? ( sys-auth/rtkit ) |
99 |
equalizer? ( sci-libs/fftw:3.0 ) |
100 |
orc? ( >=dev-lang/orc-0.4.9 ) |
101 |
ssl? ( dev-libs/openssl ) |
102 |
>=media-libs/speex-1.2_rc1 |
103 |
gdbm? ( sys-libs/gdbm ) |
104 |
webrtc-aec? ( media-libs/webrtc-audio-processing ) |
105 |
dev-libs/json-c |
106 |
>=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used |
107 |
|
108 |
DEPEND="${RDEPEND} |
109 |
doc? ( app-doc/doxygen ) |
110 |
X? ( |
111 |
x11-proto/xproto |
112 |
>=x11-libs/libXtst-1.0.99.2 |
113 |
) |
114 |
dev-libs/libatomic_ops |
115 |
virtual/pkgconfig |
116 |
system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) |
117 |
dev-util/intltool" |
118 |
# This is a PDEPEND to avoid a circular dep |
119 |
PDEPEND="alsa? ( media-plugins/alsa-plugins[pulseaudio] )" |
120 |
|
121 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
122 |
# bluez dep is for the bluetooth init.d script |
123 |
RDEPEND="${RDEPEND} |
124 |
X? ( gnome-extra/gnome-audio ) |
125 |
system-wide? ( |
126 |
sys-apps/openrc |
127 |
alsa? ( media-sound/alsa-utils ) |
128 |
bluetooth? ( >=net-wireless/bluez-4 ) |
129 |
)" |
130 |
|
131 |
# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
132 |
REQUIRED_USE="bluetooth? ( dbus )" |
133 |
|
134 |
pkg_setup() { |
135 |
enewgroup audio 18 # Just make sure it exists |
136 |
enewgroup pulse-access |
137 |
enewgroup pulse |
138 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
139 |
} |
140 |
|
141 |
src_configure() { |
142 |
# It's a binutils bug, once I can find time to fix that I'll add a |
143 |
# proper dependency and fix this up. — flameeyes |
144 |
append-ldflags $(no-as-needed) |
145 |
|
146 |
if use gdbm; then |
147 |
myconf+=" --with-database=gdbm" |
148 |
#elif use tdb; then |
149 |
# myconf+=" --with-database=tdb" |
150 |
else |
151 |
myconf+=" --with-database=simple" |
152 |
fi |
153 |
|
154 |
econf \ |
155 |
--enable-largefile \ |
156 |
$(use_enable glib glib2) \ |
157 |
--disable-solaris \ |
158 |
$(use_enable asyncns) \ |
159 |
$(use_enable oss oss-output) \ |
160 |
$(use_enable alsa) \ |
161 |
$(use_enable lirc) \ |
162 |
$(use_enable tcpd tcpwrap) \ |
163 |
$(use_enable jack) \ |
164 |
$(use_enable lirc) \ |
165 |
$(use_enable avahi) \ |
166 |
--disable-hal \ |
167 |
$(use_enable dbus) \ |
168 |
$(use_enable gnome gconf) \ |
169 |
$(use_enable libsamplerate samplerate) \ |
170 |
$(use_enable bluetooth bluez) \ |
171 |
$(use_enable X x11) \ |
172 |
$(use_enable test default-build-tests) \ |
173 |
$(use_enable udev) \ |
174 |
$(use_enable ipv6) \ |
175 |
$(use_enable ssl openssl) \ |
176 |
$(use_enable webrtc-aec) \ |
177 |
$(use_with caps) \ |
178 |
$(use_with equalizer fftw) \ |
179 |
--disable-adrian-aec \ |
180 |
--disable-esound \ |
181 |
--localstatedir="${EPREFIX}"/var \ |
182 |
--with-udev-rules-dir="${EPREFIX}/lib/udev/rules.d" \ |
183 |
${myconf} |
184 |
|
185 |
if use doc; then |
186 |
pushd doxygen |
187 |
doxygen doxygen.conf |
188 |
popd |
189 |
fi |
190 |
} |
191 |
|
192 |
src_test() { |
193 |
# We avoid running the toplevel check target because that will run |
194 |
# po/'s tests too, and they are broken. Officially, it should work |
195 |
# with intltool 0.41, but that doesn't look like a stable release. |
196 |
emake -C src check |
197 |
} |
198 |
|
199 |
src_install() { |
200 |
emake DESTDIR="${D}" install |
201 |
|
202 |
# Drop the script entirely if X is disabled |
203 |
use X || rm "${ED}"/usr/bin/start-pulseaudio-x11 |
204 |
|
205 |
if use system-wide; then |
206 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
207 |
|
208 |
use_define() { |
209 |
local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
210 |
|
211 |
use "$1" && echo "-D$define" || echo "-U$define" |
212 |
} |
213 |
|
214 |
unifdef $(use_define avahi) \ |
215 |
$(use_define alsa) \ |
216 |
$(use_define bluetooth) \ |
217 |
$(use_define udev) \ |
218 |
"${FILESDIR}/pulseaudio.init.d-5" \ |
219 |
> "${T}/pulseaudio" |
220 |
|
221 |
doinitd "${T}/pulseaudio" |
222 |
fi |
223 |
|
224 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa" |
225 |
|
226 |
dodoc README todo |
227 |
|
228 |
if use doc; then |
229 |
pushd doxygen/html |
230 |
dohtml * |
231 |
popd |
232 |
fi |
233 |
|
234 |
# Create the state directory |
235 |
use prefix || diropts -o pulse -g pulse -m0755 |
236 |
keepdir /var/run/pulse |
237 |
|
238 |
find "${D}" -name '*.la' -delete |
239 |
} |
240 |
|
241 |
pkg_postinst() { |
242 |
if use system-wide; then |
243 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
244 |
elog "This support is enabled by starting the pulseaudio init.d ." |
245 |
elog "To be able to access that you need to be in the group pulse-access." |
246 |
elog "If you choose to use this feature, please make sure that you" |
247 |
elog "really want to run PulseAudio this way:" |
248 |
elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode" |
249 |
elog "For more information about system-wide support, please refer to:" |
250 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
251 |
if use gnome ; then |
252 |
elog |
253 |
elog "By enabling gnome USE flag, you enabled gconf support. Please note" |
254 |
elog "that you might need to remove the gnome USE flag or disable the" |
255 |
elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio" |
256 |
elog "with a system-wide instance." |
257 |
fi |
258 |
fi |
259 |
if use bluetooth; then |
260 |
elog |
261 |
elog "The Bluetooth proximity module is not enabled in the default" |
262 |
elog "configuration file. If you do enable it, you'll have to have" |
263 |
elog "your Bluetooth controller enabled and inserted at bootup or" |
264 |
elog "PulseAudio will refuse to start." |
265 |
fi |
266 |
|
267 |
eselect esd update --if-unset |
268 |
} |