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