Magellan Linux

Contents of /branches/R11-unstable/extras/libsoundtouch/libsoundtouch-1.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25571 - (show annotations) (download)
Tue Nov 25 03:58:14 2014 UTC (9 years, 5 months ago) by niro
File size: 1085 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libsoundtouch"
4 PVER="1.9.0"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="SoundTouch is a audio processing library for modifing audio streams."
10 HOMEPAGE="http://www.surina.net/soundtouch/"
11
12 DEPEND=">= virtual/glibc
13 >= sys-libs/libstdc++-4.8"
14
15 SRCFILE="${PNAME/lib/}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME/lib/}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://www.surina.net/${PNAME/lib/}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd -listonly ${HOMEPAGE}/sourcecode.html | firsttarball gz"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # disable optimations on all arches
33 sed -i '/#define SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS/d' include/STTypes.h || die
34
35 # generate missing configure
36 mautoreconf || die
37 }
38
39 src_compile()
40 {
41 cd ${SRCDIR}
42
43 mconfigure --disable-integer-samples || die
44 mmake || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50 mmake DESTDIR=${BINDIR} pkgdocdir=/usr/share/doc/${PNAME}-${PVER} install || die
51
52 # upstream changed pkgconfig filename
53 mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die
54 }