Magellan Linux

Annotation of /trunk/extras/cdrdao/cdrdao-1.2.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10990 - (hide annotations) (download)
Mon Feb 6 21:33:09 2012 UTC (12 years, 3 months ago) by niro
File size: 1683 byte(s)
-imported from NEXT
1 niro 9836 # $Id$
2    
3     PNAME="cdrdao"
4     PVER="1.2.3"
5     PBUILD="r2"
6    
7 niro 10990 PCAT="app-cdr"
8 niro 9836
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 9837 mirror://${PNAME}/${PNAME}-${PVER}-stat.patch
28 niro 9836 )
29    
30     UP2DATE="updatecmd_sourceforge ${PNAME}"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35     cd ${SRCDIR}
36    
37 niro 9837 # fix missing includes
38     mpatch ${PNAME}-${PVER}-stat.patch || die
39    
40 niro 9836 # 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     }