Contents of /branches/magellan-next/extras/libsoundtouch/libsoundtouch-1.6.0-r1.smage2
Parent Directory | Revision Log
Revision 9564 -
(show annotations)
(download)
Sat Dec 10 20:23:11 2011 UTC (12 years, 9 months ago) by niro
File size: 1236 byte(s)
Sat Dec 10 20:23:11 2011 UTC (12 years, 9 months ago) by niro
File size: 1236 byte(s)
-generate missing configure script
1 | # $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 | # generate missing configure |
42 | mautoreconf || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | mconfigure --enable-shared --disable-integer-samples || die |
50 | mmake || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | mmake DESTDIR=${BINDIR} install || die |
57 | |
58 | # upstream changed pkgconfig filename |
59 | mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die |
60 | |
61 | minstalldocs COPYING.TXT README.html || die |
62 | } |