Contents of /trunk/extras/libsoundtouch/libsoundtouch-1.4.0-r1.smage2
Parent Directory | Revision Log
Revision 4543 -
(show annotations)
(download)
Fri Dec 25 09:59:22 2009 UTC (14 years, 4 months ago) by niro
File size: 1097 byte(s)
Fri Dec 25 09:59:22 2009 UTC (14 years, 4 months ago) by niro
File size: 1097 byte(s)
-fixed missing include
1 | # $Id$ |
2 | |
3 | PNAME="libsoundtouch" |
4 | PVER="1.4.0" |
5 | PBUILD="r1" |
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 mbuild 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_install() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake DESTDIR=${BINDIR} install || die |
47 | |
48 | # upstream changed pkgconfig filename |
49 | mlink ${PNAME/lib/}-1.4.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die |
50 | |
51 | minstalldocs COPYING.TXT README.html || die |
52 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |