Magellan Linux

Annotation of /branches/R11-stable/extras/alsa-plugins/alsa-plugins-1.0.28-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21475 - (hide annotations) (download)
Thu Jun 26 13:32:34 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/extras/alsa-plugins/alsa-plugins-1.0.28-r1.smage2
File size: 1840 byte(s)
auto added: ver bump to 1.0.28-r1
1 niro 21475 # $Id$
2    
3     PNAME="alsa-plugins"
4     PVER="1.0.28"
5     PBUILD="r1"
6    
7     PCAT="media-sound"
8     LICENSE="gpl-2"
9    
10     DESCRIPTION="Advanced Linux Sound Architecture Plugins."
11     HOMEPAGE="http://www.alsa-project.org/"
12    
13     DEPEND=">= media-libs/alsa-lib-${PVER}
14     >= media-libs/libsamplerate-0.1.8
15     >= media-video/ffmpeg-2.2
16     >= media-sound/pulseaudio-5.0
17     >= media-libs/speex-1.2"
18    
19     SDEPEND=">= dev-util/pkgconfig-0.25"
20    
21     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
23    
24     sminclude mbuild mtools multilib
25    
26     SRC_URI=(
27     http://dl.ambiweb.de/mirrors/ftp.alsa-project.org/plugins/${SRCFILE}
28     ftp://ftp.alsa-project.org/pub/plugins/${SRCFILE}
29     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg.patch
32     mirror://${PNAME}/pulseaudio-probe.conf
33     mirror://${PNAME}/pulse-default.conf
34     )
35    
36     UP2DATE="updatecmd 'http://alsa.cybermirror.org/${PNAME/alsa-/}/?C=M;O=A' | lasttarball"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     mpatch ${PNAME}-${PVER}-ffmpeg.patch || die
44     }
45    
46     src_compile()
47     {
48     # fix some build issues
49     export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
50     export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
51    
52     mconfigure \
53     --disable-dependency-tracking \
54     --disable-dbus \
55     --enable-avcodec \
56     --enable-pulseaudio \
57     --enable-samplerate \
58     --with-speex \
59     || die
60    
61     mmake || die
62     }
63    
64     src_install()
65     {
66     mbuild_src_install || die
67    
68     # use pulseaudio as default audio device if running
69     minstalldir /usr/share/alsa || die
70     minstallfile -s pulse-default.conf /usr/share/alsa || die
71     minstalldir /usr/share/alsa/alsa.conf.d || die
72     minstallfile -s pulseaudio-probe.conf /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die
73     # fix libdir
74     sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die
75     }