Magellan Linux

Contents of /branches/magellan-next/core/pulseaudio/pulseaudio-0.9.23-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8346 - (show annotations) (download)
Fri Jul 15 00:25:07 2011 UTC (12 years, 9 months ago) by niro
File size: 2445 byte(s)
-fixed libexecdir
1 # $Id$
2
3 PNAME="pulseaudio"
4 PVER="0.9.23"
5 PBUILD="r2"
6
7 PCATEGORIE="media-sound"
8
9 DESCRIPTION="A networked sound server with an advanced plugin system."
10 HOMEPAGE="http://www.pulseaudio.org/"
11
12 DEPEND=">= dev-db/tdb-1.2.9
13 >= x11-libs/libSM-1
14 >= x11-libs/libICE
15 >= x11-libs/libXtst
16 >= x11-libs/libX11-1.4
17 >= x11-libs/libxcb-1.7
18 >= x11-libs/xcb-util-0.3.8
19 >= sys-libs/libcap-2.20
20 >= media-libs/libsamplerate-0.1.7
21 >= media-libs/alsa-lib-1.0.24
22 >= dev-libs/glib2-2.28
23 >= net-dns/avahi-0.6.30
24 >= sys-apps/tcp-wrappers-7.6
25 >= sys-apps/dbus-1.4
26 >= sys-fs/udev-171
27 >=media-libs/audiofile-0.2.7
28 >= media-libs/speex-1.2
29 >= media-libs/libsndfile-1.0.24"
30 # todo rtkit deamon for realtime support ?
31
32 SDEPEND=">= x11-proto/xproto-7
33 >= dev-util/pkgconfig-0.25
34 >= dev-util/intltool-0.41"
35
36 SRCFILE="${PNAME}-${PVER}.tar.gz"
37 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
38
39 sminclude mtools multilib
40
41 SRC_URI=(
42 http://freedesktop.org/software/${PNAME}/releases/${SRCFILE}
43 mirror://${PNAME}/${SRCFILE}
44 )
45
46 UP2DATE="updatecmd ${HOMEPAGE} | firsttarball gz"
47
48 src_compile()
49 {
50 mconfigure \
51 --libexecdir=/usr/$(mlibdir)/${PNAME} \
52 --localstatedir=/var \
53 --with-udev-rules-dir=/lib/udev/rules.d \
54 --with-database=tdb \
55 --with-caps \
56 --disable-per-user-esound-socket \
57 --disable-solaris \
58 --disable-hal \
59 --enable-largefile \
60 --enable-glib2 \
61 --enable-udev \
62 --enable-dbus \
63 --enable-alsa \
64 --enable-samplerate \
65 --enable-ipv6 \
66 --enable-avahi \
67 --enable-tcpwrap \
68 --enable-x11 \
69 --disable-asyncns \
70 --disable-oss-output \
71 --disable-lirc \
72 --disable-jack \
73 --disable-gconf \
74 --disable-bluez \
75 --disable-default-build-tests \
76 || die
77
78 mmake || die
79 }
80
81 src_install()
82 {
83 mmake DESTDIR=${BINDIR} install || die
84
85 # enable avahi support
86 sed -i '/module-zeroconf-publish/s:^#::' ${BINDIR}/etc/pulse/default.pa || die
87
88 # state dir
89 mkeepdir /var/run/pulse || die
90 mchown pulse.pulse /var/run/pulse || die
91 }
92
93 preinstall()
94 {
95 # adding pulse user
96 ${MLIBDIR}/mgroupadd -o "-g 11" audio
97 ${MLIBDIR}/mgroupadd -o pulse-access
98 ${MLIBDIR}/mgroupadd -o pulse
99 ${MLIBDIR}/museradd -o "-g pulse -G audio -d /var/run/pulse -s /bin/false" pulse
100 }
101
102 postinstall()
103 {
104 if [[ -z $(magequery -n alsa-plugins) ]]
105 then
106 echo "You have alsa support enabled so you probably want to install"
107 echo "'media-sound/alsa-plugins' with pulseaudio support to have"
108 echo "alsa using applications route their sound through pulseaudio."
109 fi
110 }