Contents of /trunk/extras/alsa-plugins/alsa-plugins-1.1.0-r1.smage2
Parent Directory | Revision Log
Revision 27148 -
(show annotations)
(download)
Mon Nov 30 13:27:53 2015 UTC (8 years, 11 months ago) by niro
File size: 1684 byte(s)
Mon Nov 30 13:27:53 2015 UTC (8 years, 11 months ago) by niro
File size: 1684 byte(s)
auto added: ver bump to 1.1.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="alsa-plugins" |
4 | PVER="1.1.0" |
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}/pulseaudio-probe.conf |
32 | mirror://${PNAME}/pulse-default.conf |
33 | ) |
34 | |
35 | UP2DATE="updatecmd 'http://alsa.cybermirror.org/${PNAME/alsa-/}/?C=M;O=A' | lasttarball" |
36 | |
37 | src_compile() |
38 | { |
39 | # fix some build issues |
40 | export CFLAGS="${CFLAGS} -D_GNU_SOURCE" |
41 | export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE" |
42 | |
43 | mconfigure \ |
44 | --disable-dependency-tracking \ |
45 | --disable-dbus \ |
46 | --enable-avcodec \ |
47 | --enable-pulseaudio \ |
48 | --enable-samplerate \ |
49 | --with-speex \ |
50 | || die |
51 | |
52 | mmake || die |
53 | } |
54 | |
55 | src_install() |
56 | { |
57 | mbuild_src_install || die |
58 | |
59 | # use pulseaudio as default audio device if running |
60 | minstalldir /usr/share/alsa || die |
61 | minstallfile -s pulse-default.conf /usr/share/alsa || die |
62 | minstalldir /usr/share/alsa/alsa.conf.d || die |
63 | minstallfile -s pulseaudio-probe.conf /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die |
64 | # fix libdir |
65 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die |
66 | } |