Annotation of /trunk/extras/libsoundtouch/libsoundtouch-2.0.0-r1.smage2
Parent Directory | Revision Log
Revision 30349 -
(hide annotations)
(download)
Mon Dec 18 09:15:44 2017 UTC (6 years, 9 months ago) by niro
File size: 1085 byte(s)
Mon Dec 18 09:15:44 2017 UTC (6 years, 9 months ago) by niro
File size: 1085 byte(s)
auto added: ver bump to 2.0.0-r1
1 | niro | 30349 | # $Id$ |
2 | |||
3 | PNAME="libsoundtouch" | ||
4 | PVER="2.0.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="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++-5.3" | ||
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 | ) | ||
24 | |||
25 | UP2DATE="updatecmd -listonly ${HOMEPAGE}/sourcecode.html | firsttarball gz" | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR} | ||
31 | |||
32 | # disable optimations on all arches | ||
33 | sed -i '/#define SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS/d' include/STTypes.h || die | ||
34 | |||
35 | # generate missing configure | ||
36 | mautoreconf || die | ||
37 | } | ||
38 | |||
39 | src_compile() | ||
40 | { | ||
41 | cd ${SRCDIR} | ||
42 | |||
43 | mconfigure --disable-integer-samples || die | ||
44 | mmake || die | ||
45 | } | ||
46 | |||
47 | src_install() | ||
48 | { | ||
49 | cd ${SRCDIR} | ||
50 | mmake DESTDIR=${BINDIR} pkgdocdir=/usr/share/doc/${PNAME}-${PVER} install || die | ||
51 | |||
52 | # upstream changed pkgconfig filename | ||
53 | mlink ${PNAME/lib/}-${PVER%.*}.pc /usr/$(mlibdir)/pkgconfig/${PNAME/lib/}-1.0.pc || die | ||
54 | } |