# $Id$ PNAME="cdrdao" PVER="1.2.3" PBUILD="r2" PCAT="app-cdr" 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 >= media-libs/libmad-0.15 >= media-libs/libogg-1.3 >= media-libs/libvorbis-1.3 >= sys-libs/libstdc++-4.6" 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}-stat.patch ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix missing includes mpatch ${PNAME}-${PVER}-stat.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 \ --with-lame \ --with-ogg-support \ --with-mp3-support \ || die mmake || die } src_install() { cd ${SRCDIR} minstall || die minstalldocs AUTHORS COPYING CREDITS ChangeLog NEWS README* || die }