Contents of /branches/magellan-next/core/pulseaudio/pulseaudio-1.1-r1.smage2
Parent Directory | Revision Log
Revision 9326 -
(show annotations)
(download)
Sat Nov 26 12:59:21 2011 UTC (12 years, 10 months ago) by niro
File size: 2460 byte(s)
Sat Nov 26 12:59:21 2011 UTC (12 years, 10 months ago) by niro
File size: 2460 byte(s)
-added missing json-c dep
1 | # $Id$ |
2 | |
3 | PNAME="pulseaudio" |
4 | PVER="1.1" |
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 | >= dev-libs/json-c-0.9 |
24 | >= net-dns/avahi-0.6.30 |
25 | >= sys-apps/tcp-wrappers-7.6 |
26 | >= sys-apps/dbus-1.4 |
27 | >= sys-fs/udev-171 |
28 | >=media-libs/audiofile-0.2.7 |
29 | >= media-libs/speex-1.2 |
30 | >= media-libs/libsndfile-1.0.24" |
31 | # todo rtkit deamon for realtime support ? |
32 | |
33 | SDEPEND=">= x11-proto/xproto-7 |
34 | >= dev-util/pkgconfig-0.25 |
35 | >= dev-util/intltool-0.41" |
36 | |
37 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
38 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
39 | |
40 | sminclude mtools multilib |
41 | |
42 | SRC_URI=( |
43 | http://freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
44 | mirror://${PNAME}/${SRCFILE} |
45 | ) |
46 | |
47 | UP2DATE="updatecmd ${HOMEPAGE} | firsttarball gz" |
48 | |
49 | src_compile() |
50 | { |
51 | mconfigure \ |
52 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
53 | --localstatedir=/var \ |
54 | --with-udev-rules-dir=/lib/udev/rules.d \ |
55 | --with-database=tdb \ |
56 | --with-caps \ |
57 | --disable-per-user-esound-socket \ |
58 | --disable-solaris \ |
59 | --disable-hal \ |
60 | --enable-largefile \ |
61 | --enable-glib2 \ |
62 | --enable-udev \ |
63 | --enable-dbus \ |
64 | --enable-alsa \ |
65 | --enable-samplerate \ |
66 | --enable-ipv6 \ |
67 | --enable-avahi \ |
68 | --enable-tcpwrap \ |
69 | --enable-x11 \ |
70 | --disable-asyncns \ |
71 | --disable-oss-output \ |
72 | --disable-lirc \ |
73 | --disable-jack \ |
74 | --disable-gconf \ |
75 | --disable-bluez \ |
76 | --disable-default-build-tests \ |
77 | || die |
78 | |
79 | mmake || die |
80 | } |
81 | |
82 | src_install() |
83 | { |
84 | mmake DESTDIR=${BINDIR} install || die |
85 | |
86 | # enable avahi support |
87 | sed -i '/module-zeroconf-publish/s:^#::' ${BINDIR}/etc/pulse/default.pa || die |
88 | |
89 | # state dir |
90 | mkeepdir /var/run/pulse || die |
91 | mchown pulse.pulse /var/run/pulse || die |
92 | } |
93 | |
94 | preinstall() |
95 | { |
96 | # adding pulse user |
97 | ${MLIBDIR}/mgroupadd -o "-g 11" audio |
98 | ${MLIBDIR}/mgroupadd pulse-access |
99 | ${MLIBDIR}/mgroupadd pulse |
100 | ${MLIBDIR}/museradd -o "-g pulse -G audio -d /var/run/pulse -s /bin/false" pulse |
101 | } |
102 | |
103 | postinstall() |
104 | { |
105 | if [[ -z $(magequery -n alsa-plugins) ]] |
106 | then |
107 | echo "You have alsa support enabled so you probably want to install" |
108 | echo "'media-sound/alsa-plugins' with pulseaudio support to have" |
109 | echo "alsa using applications route their sound through pulseaudio." |
110 | fi |
111 | } |