# $Id$ PNAME="audiofile" PVER="0.3.6" PBUILD="r3" PCAT="media-libs" DESCRIPTION="The Audio File Library provides a uniform API for accessing a variety of audio file formats." HOMEPAGE="https://audiofile.68k.org/" DEPEND=">= sys-libs/libstdc++-7.2 >= media-libs/alsa-lib-1.1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mbuild msetfeature "!check" SRC_URI=( https://audiofile.68k.org/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc6.patch mirror://${PNAME}/${PNAME}-${PVER}-CVE-2015-7747.patch mirror://${PNAME}/${PNAME}-${PVER}-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch mirror://${PNAME}/${PNAME}-${PVER}-Always-check-the-number-of-coefficients.patch mirror://${PNAME}/${PNAME}-${PVER}-Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch mirror://${PNAME}/${PNAME}-${PVER}-Check-for-multiplication-overflow-in-sfconvert.patch mirror://${PNAME}/${PNAME}-${PVER}-Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch mirror://${PNAME}/${PNAME}-${PVER}-Actually-fail-when-error-occurs-in-parseFormat.patch mirror://${PNAME}/${PNAME}-${PVER}-Check-for-division-by-zero-in-BlockCodec-runPull.patch ) UP2DATE="updatecmd ${HOMEPAGE} | grep download | sed 's/.*version\ \(.*\).*/\1/'" src_prepare() { munpack ${SRCFILE} || die mpatch ${PNAME}-${PVER}-gcc6.patch || die mpatch ${PNAME}-${PVER}-CVE-2015-7747.patch || die mpatch ${PNAME}-${PVER}-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch || die mpatch ${PNAME}-${PVER}-Always-check-the-number-of-coefficients.patch || die mpatch ${PNAME}-${PVER}-Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch || die mpatch ${PNAME}-${PVER}-Check-for-multiplication-overflow-in-sfconvert.patch || die mpatch ${PNAME}-${PVER}-Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch || die mpatch ${PNAME}-${PVER}-Actually-fail-when-error-occurs-in-parseFormat.patch || die mpatch ${PNAME}-${PVER}-Check-for-division-by-zero-in-BlockCodec-runPull.patch || die # don't build any examples all-abis 'sed -i "/^SRC_SUBDIRS/s: examples::" Makefile.am || die' mautoreconf || die } src_compile() { mconfigure --enable-largefile --disable-static --disable-werror || die mmake || die }