Magellan Linux

Contents of /branches/R11-stable/extras/libsoundtouch/libsoundtouch-1.8.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21791 - (show annotations) (download)
Mon Jul 21 09:49:23 2014 UTC (9 years, 9 months ago) by niro
File size: 1190 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="libsoundtouch"
4 PVER="1.8.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 mirror://${PNAME}/${PNAME}-1.7.0-cflags.patch
24 )
25
26 UP2DATE="updatecmd -listonly ${HOMEPAGE}/sourcecode.html | firsttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix CFLAGS
34 mpatch ${PNAME}-1.7.0-cflags.patch || die
35
36 # disable optimations on all arches
37 sed -i '/#define SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS/d' include/STTypes.h || die
38
39 # generate missing configure
40 mautoreconf || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 mconfigure --disable-integer-samples || die
48 mmake || die
49 }
50
51 src_install()
52 {
53 cd ${SRCDIR}
54 mmake DESTDIR=${BINDIR} pkgdocdir=/usr/share/doc/${PNAME}-${PVER} install || die
55
56 # upstream changed pkgconfig filename
57 mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die
58 }