Annotation of /trunk/extras/cdrdao/cdrdao-1.2.2-r3.smage2
Parent Directory | Revision Log
Revision 2974 -
(hide annotations)
(download)
Thu Jul 16 16:12:08 2009 UTC (15 years, 2 months ago) by niro
File size: 2429 byte(s)
Thu Jul 16 16:12:08 2009 UTC (15 years, 2 months ago) by niro
File size: 2429 byte(s)
-serveral buildfixes
1 | niro | 2973 | # $Id$ |
2 | |||
3 | PNAME="cdrdao" | ||
4 | PVER="1.2.2" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCATEGORIE="app-cdr" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Cdrdao records audio or data CD-Rs in disk-at-once mode based on a textual description of the CD contents." | ||
11 | HOMEPAGE="http://cdrdao.sourceforge.net/" | ||
12 | |||
13 | DEPEND=">= media-sound/lame-3.98 | ||
14 | >= media-libs/libao-0.8.8" | ||
15 | |||
16 | SDEPEND=">= app-cdr/cdrtools-2" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | SRC_URI=( | ||
22 | sourceforge://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/${SRCFILE} | ||
24 | niro | 2974 | mirror://${PNAME}/${PNAME}-${PVER}-excl.patch |
25 | mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch | ||
26 | mirror://${PNAME}/${PNAME}-${PVER}-toc2cue.patch | ||
27 | mirror://${PNAME}/${PNAME}-${PVER}-cdtext.patch | ||
28 | mirror://${PNAME}/${PNAME}-${PVER}-device.patch | ||
29 | mirror://${PNAME}/${PNAME}-${PVER}-tocparser.patch | ||
30 | niro | 2973 | ) |
31 | |||
32 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | cd ${SRCDIR} | ||
38 | |||
39 | niro | 2974 | # use O_EXCL to avoid conflicts with hal |
40 | mpatch ${PNAME}-${PVER}-excl.patch || die | ||
41 | |||
42 | # fix issues with gcc-4.3 | ||
43 | mpatch ${PNAME}-${PVER}-gcc43.patch || die | ||
44 | |||
45 | # fixes error: CD/cdda.toc:36: Invalid CD-TEXT item for a track | ||
46 | mpatch ${PNAME}-${PVER}-toc2cue.patch || die | ||
47 | |||
48 | # fix cdrdao: Track.cc:1415: void Track::addCdTextItem(CdTextItem*): Assertion | ||
49 | # `CdTextItem::isTrackPack(item->packType())' failed. | ||
50 | mpatch ${PNAME}-${PVER}-cdtext.patch || die | ||
51 | |||
52 | # set default device to /dev/cdrw | ||
53 | mpatch ${PNAME}-${PVER}-device.patch || die | ||
54 | |||
55 | # undo upstream removal of automatic reading of the track lengths in TOC | ||
56 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440419 | ||
57 | mpatch ${PNAME}-${PVER}-tocparser.patch || die | ||
58 | |||
59 | niro | 2973 | # add our vendor string |
60 | sed -i "s:^\(PACKAGE_STRING=\).*:\1'cdrdao ${PVER} Magellan-Linux':" configure || die | ||
61 | |||
62 | # display better SCSI messages (taken from gentoo) | ||
63 | cd ${SRCDIR}/scsilib/include | ||
64 | sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' xmconfig.h || die | ||
65 | sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' mconfig.h || die | ||
66 | |||
67 | # fix compilation with gcc4 | ||
68 | cd ${SRCDIR} | ||
69 | sed -i 's:Toc.h":&\nclass Toc;:' trackdb/FormatConverter.h || die | ||
70 | sed -i 's:Toc.h":&\nclass Toc;:' trackdb/CueParser.cc || die | ||
71 | } | ||
72 | |||
73 | src_compile() | ||
74 | { | ||
75 | cd ${SRCDIR} | ||
76 | |||
77 | ./configure \ | ||
78 | --build="${CHOST}" \ | ||
79 | --host="${CHOST}" \ | ||
80 | --prefix=/usr \ | ||
81 | --disable-debug \ | ||
82 | --without-gnome \ | ||
83 | --without-xdao \ | ||
84 | || die | ||
85 | |||
86 | mmake || die | ||
87 | } | ||
88 | |||
89 | src_install() | ||
90 | { | ||
91 | cd ${SRCDIR} | ||
92 | |||
93 | minstall || die | ||
94 | minstalldocs AUTHORS COPYING CREDITS ChangeLog NEWS README* || die | ||
95 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |