Annotation of /branches/magellan-next/core/cdparanoia/cdparanoia-3.10.2-r5.smage2
Parent Directory | Revision Log
Revision 9356 -
(hide annotations)
(download)
Sun Nov 27 20:21:52 2011 UTC (12 years, 5 months ago) by niro
File size: 1418 byte(s)
Sun Nov 27 20:21:52 2011 UTC (12 years, 5 months ago) by niro
File size: 1418 byte(s)
-rev bump, multilib rebuild
1 | niro | 9356 | # $Id$ |
2 | |||
3 | PNAME="cdparanoia" | ||
4 | PVER="3.10.2" | ||
5 | PBUILD="r5" | ||
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 mbuild multilib | ||
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 | mautoreconf || die | ||
48 | mlibtoolize || die | ||
49 | } | ||
50 | |||
51 | src_compile() | ||
52 | { | ||
53 | cd ${SRCDIR} | ||
54 | |||
55 | # needed to include the cdda_interface.h we patched in | ||
56 | export CFLAGS="${CFLAGS} -I${SRCDIR}/interface" | ||
57 | mconfigure || die | ||
58 | |||
59 | # not parallel-make safe on x86_64 | ||
60 | mmake -j1 OPT="${CFLAGS}" || die | ||
61 | } |