Contents of /trunk/extras/libsoundtouch/libsoundtouch-1.4.0-r2.smage2
Parent Directory | Revision Log
Revision 4545 -
(show annotations)
(download)
Fri Dec 25 10:10:40 2009 UTC (14 years, 9 months ago) by niro
File size: 1199 byte(s)
Fri Dec 25 10:10:40 2009 UTC (14 years, 9 months ago) by niro
File size: 1199 byte(s)
-rev bump, enabled shared lib
1 | # $Id$ |
2 | |
3 | PNAME="libsoundtouch" |
4 | PVER="1.4.0" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="SoundTouch is a audio processing library for modifing audio streams." |
11 | HOMEPAGE="http://www.surina.net/soundtouch/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
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}-${PVER}-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}-${PVER}-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 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | |
47 | mconfigure --enable-shared --disable-integer-samples || die |
48 | mmake || die |
49 | } |
50 | |
51 | src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | mmake DESTDIR=${BINDIR} install || die |
55 | |
56 | # upstream changed pkgconfig filename |
57 | mlink ${PNAME/lib/}-1.4.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die |
58 | |
59 | minstalldocs COPYING.TXT README.html || die |
60 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |