Magellan Linux

Contents of /branches/magellan-next/extras/libsoundtouch/libsoundtouch-1.6.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9786 - (show annotations) (download)
Wed Jan 11 18:37:01 2012 UTC (12 years, 4 months ago) by niro
File size: 1243 byte(s)
-no need to install docs
1 # $Id$
2
3 PNAME="libsoundtouch"
4 PVER="1.6.0"
5 PBUILD="r2"
6
7 PCATEGORIE="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.6"
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.4.0-cflags.patch
24 )
25
26 UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME/lib/} | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix CFLAGS
34 mpatch ${PNAME}-1.4.0-cflags.patch || die
35
36 # disable optimations on arches other than x86
37 if [[ ${ARCH} != i*86 ]]
38 then
39 sed -i '/^.*#define ALLOW_X86_OPTIMIZATIONS.*$/d' include/STTypes.h || die
40 fi
41
42 # generate missing configure
43 mautoreconf || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 mconfigure --disable-integer-samples || die
51 mmake || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57 mmake DESTDIR=${BINDIR} pkgdocdir=/usr/share/doc/${PNAME}-${PVER} install || die
58
59 # upstream changed pkgconfig filename
60 mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die
61 }