Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8191 - (show annotations) (download)
Wed Jul 13 00:27:42 2011 UTC (12 years, 9 months ago) by niro
File size: 2403 byte(s)
-fixed preinstall
1 # $Id$
2
3 PNAME="pulseaudio"
4 PVER="0.9.23"
5 PBUILD="r1"
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 --localstatedir=/var \
52 --with-udev-rules-dir=/lib/udev/rules.d \
53 --with-database=tdb \
54 --with-caps \
55 --disable-per-user-esound-socket \
56 --disable-solaris \
57 --disable-hal \
58 --enable-largefile \
59 --enable-glib2 \
60 --enable-udev \
61 --enable-dbus \
62 --enable-alsa \
63 --enable-samplerate \
64 --enable-ipv6 \
65 --enable-avahi \
66 --enable-tcpwrap \
67 --enable-x11 \
68 --disable-asyncns \
69 --disable-oss-output \
70 --disable-lirc \
71 --disable-jack \
72 --disable-gconf \
73 --disable-bluez \
74 --disable-default-build-tests \
75 || die
76
77 mmake || die
78 }
79
80 src_install()
81 {
82 mmake DESTDIR=${BINDIR} install || die
83
84 # enable avahi support
85 sed -i '/module-zeroconf-publish/s:^#::' ${BINDIR}/etc/pulse/default.pa || die
86
87 # state dir
88 mkeepdir /var/run/pulse || die
89 mchown pulse.pulse /var/run/pulse || die
90 }
91
92 preinstall()
93 {
94 # adding pulse user
95 ${MLIBDIR}/mgroupadd -o "-g 11" audio
96 ${MLIBDIR}/mgroupadd -o pulse-access
97 ${MLIBDIR}/mgroupadd -o pulse
98 ${MLIBDIR}/museradd -o "-g pulse -G audio -d /var/run/pulse -s /bin/false" pulse
99 }
100
101 postinstall()
102 {
103 if [[ -z $(magequery -n alsa-plugins) ]]
104 then
105 echo "You have alsa support enabled so you probably want to install"
106 echo "'media-sound/alsa-plugins' with pulseaudio support to have"
107 echo "alsa using applications route their sound through pulseaudio."
108 fi
109 }