Magellan Linux

Contents of /trunk/extras/alsa-plugins/alsa-plugins-1.1.6-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31391 - (show annotations) (download)
Fri Jun 29 08:56:30 2018 UTC (5 years, 10 months ago) by niro
File size: 1689 byte(s)
auto added: ver bump to 1.1.6-r2
1 # $Id$
2
3 PNAME="alsa-plugins"
4 PVER="1.1.6"
5 PBUILD="r2"
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.9
15 >= media-video/ffmpeg-4.0
16 >= media-sound/pulseaudio-10.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 mtools multilib mbuild
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 ftp://ftp.alsa-project.org/pub/${PNAME/alsa-/} | highesttarball"
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_multilib_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 }