Annotation of /branches/magellan-next/extras/libsoundtouch/libsoundtouch-1.6.0-r1.smage2
Parent Directory | Revision Log
Revision 9563 -
(hide annotations)
(download)
Sat Dec 10 20:21:38 2011 UTC (12 years, 5 months ago) by niro
File size: 1185 byte(s)
Sat Dec 10 20:21:38 2011 UTC (12 years, 5 months ago) by niro
File size: 1185 byte(s)
auto added: ver bump to 1.6.0-r1
1 | niro | 9563 | # $Id$ |
2 | |||
3 | PNAME="libsoundtouch" | ||
4 | PVER="1.6.0" | ||
5 | PBUILD="r1" | ||
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 | |||
14 | SRCFILE="${PNAME/lib/}-${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME/lib/}" | ||
16 | |||
17 | sminclude mtools | ||
18 | |||
19 | SRC_URI=( | ||
20 | http://www.surina.net/${PNAME/lib/}/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/${PNAME}-1.4.0-cflags.patch | ||
23 | ) | ||
24 | |||
25 | UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME/lib/} | lasttarball gz" | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR} | ||
31 | |||
32 | # fix CFLAGS | ||
33 | mpatch ${PNAME}-1.4.0-cflags.patch || die | ||
34 | |||
35 | # disable optimations on arches other than x86 | ||
36 | if [[ ${ARCH} != i*86 ]] | ||
37 | then | ||
38 | sed -i '/^.*#define ALLOW_X86_OPTIMIZATIONS.*$/d' include/STTypes.h || die | ||
39 | fi | ||
40 | } | ||
41 | |||
42 | src_compile() | ||
43 | { | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | mconfigure --enable-shared --disable-integer-samples || die | ||
47 | mmake || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | mmake DESTDIR=${BINDIR} install || die | ||
54 | |||
55 | # upstream changed pkgconfig filename | ||
56 | mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die | ||
57 | |||
58 | minstalldocs COPYING.TXT README.html || die | ||
59 | } |