Contents of /branches/magellan-next/core/cdparanoia/cdparanoia-3.10.2-r4.smage2
Parent Directory | Revision Log
Revision 8367 -
(show annotations)
(download)
Fri Jul 15 10:29:02 2011 UTC (13 years, 2 months ago) by niro
File size: 1608 byte(s)
Fri Jul 15 10:29:02 2011 UTC (13 years, 2 months ago) by niro
File size: 1608 byte(s)
auto added: ver bump to 3.10.2-r4
1 | # $Id$ |
2 | |
3 | PNAME="cdparanoia" |
4 | PVER="3.10.2" |
5 | PBUILD="r4" |
6 | |
7 | PCATEGORIE="media-sound" |
8 | |
9 | DESCRIPTION="An advanced CDDA reader with error correction." |
10 | HOMEPAGE="http://www.xiph.org/paranoia/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-III-${PVER#*.}.src.tgz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-III-${PVER#*.}" |
16 | |
17 | sminclude gnuconfig mbuild |
18 | |
19 | SRC_URI=( |
20 | http://downloads.xiph.org/releases/${PNAME}/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-${PVER}-include-cdda_interface_h.patch |
23 | mirror://${PNAME}/${PNAME}-${PVER}-Makefile.in.patch |
24 | mirror://${PNAME}/${PNAME}-${PVER}-use-destdir.patch |
25 | mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch |
26 | ) |
27 | |
28 | UP2DATE="echo -n '3.';updatecmd 'http://downloads.xiph.org/releases/cdparanoia/?C=M;O=A' | sed 's:.src::' | lasttarball tgz" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fix missing includes |
36 | mpatch ${PNAME}-${PVER}-include-cdda_interface_h.patch || die |
37 | |
38 | # add destdir support |
39 | mpatch ${PNAME}-${PVER}-use-destdir.patch || die |
40 | |
41 | # build pic objects too |
42 | mpatch ${PNAME}-${PVER}-Makefile.in.patch || die |
43 | |
44 | # fix build issues with gcc-4.3 |
45 | mpatch ${PNAME}-${PVER}-gcc43.patch || die |
46 | |
47 | # support more targets |
48 | ln -s configure.guess config.guess || die |
49 | ln -s configure.sub config.sub || die |
50 | gnuconfig-update || die |
51 | rm config.{guess,sub} || die |
52 | |
53 | autoreconf --install --force --verbose || die |
54 | mlibtoolize || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | # needed to include the cdda_interface.h we patched in |
62 | export CFLAGS="${CFLAGS} -I${SRCDIR}/interface" |
63 | mconfigure || die |
64 | |
65 | # not parallel-make safe on x86_64 |
66 | mmake -j1 OPT="${CFLAGS}" || die |
67 | } |