Magellan Linux

Annotation of /trunk/extras/cdrdao/cdrdao-1.2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30988 - (hide annotations) (download)
Tue May 29 09:11:45 2018 UTC (5 years, 11 months ago) by niro
File size: 1679 byte(s)
auto added: ver bump to 1.2.4-r1
1 niro 30987 # $Id$
2    
3     PNAME="cdrdao"
4     PVER="1.2.4"
5     PBUILD="r1"
6    
7     PCAT="app-cdr"
8    
9     DESCRIPTION="Cdrdao records audio or data CD-Rs in disk-at-once mode based on a textual description of the CD contents."
10     HOMEPAGE="http://cdrdao.sourceforge.net/"
11    
12     DEPEND=">= media-sound/lame-3.98
13     >= media-libs/libao-0.8.8
14     >= media-libs/libmad-0.15
15     >= media-libs/libogg-1.3
16     >= media-libs/libvorbis-1.3
17     >= sys-libs/libstdc++-4.6"
18    
19     SDEPEND=">= app-cdr/cdrtools-2"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.bz2"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     SRC_URI=(
25     sourceforge://${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27 niro 30988 mirror://${PNAME}/${PNAME}-1.2.3-stat.patch
28 niro 30987 )
29    
30     UP2DATE="updatecmd_sourceforge ${PNAME}"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35     cd ${SRCDIR}
36    
37     # fix missing includes
38 niro 30988 mpatch ${PNAME}-1.2.3-stat.patch || die
39 niro 30987
40     # add our vendor string
41     sed -i "s:^\(PACKAGE_STRING=\).*:\1'cdrdao ${PVER} Magellan-Linux':" configure || die
42    
43     # display better SCSI messages (taken from gentoo)
44     cd ${SRCDIR}/scsilib/include
45     sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' xmconfig.h || die
46     sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' mconfig.h || die
47    
48     # fix compilation with gcc4
49     cd ${SRCDIR}
50     sed -i 's:Toc.h":&\nclass Toc;:' trackdb/FormatConverter.h || die
51     sed -i 's:Toc.h":&\nclass Toc;:' trackdb/CueParser.cc || die
52     }
53    
54     src_compile()
55     {
56     cd ${SRCDIR}
57    
58     ./configure \
59     --build="${CHOST}" \
60     --host="${CHOST}" \
61     --prefix=/usr \
62     --disable-debug \
63     --without-gnome \
64     --without-xdao \
65     --with-lame \
66     --with-ogg-support \
67     --with-mp3-support \
68     || die
69    
70     mmake || die
71     }
72    
73     src_install()
74     {
75     cd ${SRCDIR}
76    
77     minstall || die
78     minstalldocs AUTHORS COPYING CREDITS ChangeLog NEWS README* || die
79     }