# $Id$ PNAME="cdrdao" PVER="1.2.2" PBUILD="r3" PCATEGORIE="app-cdr" STATE="unstable" DESCRIPTION="Cdrdao records audio or data CD-Rs in disk-at-once mode based on a textual description of the CD contents." HOMEPAGE="http://cdrdao.sourceforge.net/" DEPEND=">= media-sound/lame-3.98 >= media-libs/libao-0.8.8" SDEPEND=">= app-cdr/cdrtools-2" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-excl.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch mirror://${PNAME}/${PNAME}-${PVER}-toc2cue.patch mirror://${PNAME}/${PNAME}-${PVER}-cdtext.patch mirror://${PNAME}/${PNAME}-${PVER}-device.patch mirror://${PNAME}/${PNAME}-${PVER}-tocparser.patch ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # use O_EXCL to avoid conflicts with hal mpatch ${PNAME}-${PVER}-excl.patch || die # fix issues with gcc-4.3 mpatch ${PNAME}-${PVER}-gcc43.patch || die # fixes error: CD/cdda.toc:36: Invalid CD-TEXT item for a track mpatch ${PNAME}-${PVER}-toc2cue.patch || die # fix cdrdao: Track.cc:1415: void Track::addCdTextItem(CdTextItem*): Assertion # `CdTextItem::isTrackPack(item->packType())' failed. mpatch ${PNAME}-${PVER}-cdtext.patch || die # set default device to /dev/cdrw mpatch ${PNAME}-${PVER}-device.patch || die # undo upstream removal of automatic reading of the track lengths in TOC # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440419 mpatch ${PNAME}-${PVER}-tocparser.patch || die # add our vendor string sed -i "s:^\(PACKAGE_STRING=\).*:\1'cdrdao ${PVER} Magellan-Linux':" configure || die # display better SCSI messages (taken from gentoo) cd ${SRCDIR}/scsilib/include sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' xmconfig.h || die sed -i 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' mconfig.h || die # fix compilation with gcc4 cd ${SRCDIR} sed -i 's:Toc.h":&\nclass Toc;:' trackdb/FormatConverter.h || die sed -i 's:Toc.h":&\nclass Toc;:' trackdb/CueParser.cc || die } src_compile() { cd ${SRCDIR} ./configure \ --build="${CHOST}" \ --host="${CHOST}" \ --prefix=/usr \ --disable-debug \ --without-gnome \ --without-xdao \ || die mmake || die } src_install() { cd ${SRCDIR} minstall || die minstalldocs AUTHORS COPYING CREDITS ChangeLog NEWS README* || die }