Magellan Linux

Annotation of /branches/magellan-next/core/pulseaudio/pulseaudio-1.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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