Magellan Linux

Annotation of /trunk/extras/audiofile/audiofile-0.3.6-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30434 - (hide annotations) (download)
Mon Jan 22 12:41:40 2018 UTC (6 years, 3 months ago) by niro
File size: 2283 byte(s)
-added serveral security and built fixes
1 niro 30432 # $Id$
2    
3     PNAME="audiofile"
4     PVER="0.3.6"
5     PBUILD="r3"
6    
7     PCAT="media-libs"
8    
9     DESCRIPTION="The Audio File Library provides a uniform API for accessing a variety of audio file formats."
10 niro 30433 HOMEPAGE="https://audiofile.68k.org/"
11 niro 30432
12 niro 30433 DEPEND=">= sys-libs/libstdc++-7.2
13 niro 30432 >= media-libs/alsa-lib-1.1"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude multilib mbuild
19     msetfeature "!check"
20    
21     SRC_URI=(
22 niro 30433 https://audiofile.68k.org/${SRCFILE}
23 niro 30432 mirror://${PNAME}/${SRCFILE}
24 niro 30434 mirror://${PNAME}/${PNAME}-${PVER}-gcc6.patch
25     mirror://${PNAME}/${PNAME}-${PVER}-CVE-2015-7747.patch
26     mirror://${PNAME}/${PNAME}-${PVER}-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch
27     mirror://${PNAME}/${PNAME}-${PVER}-Always-check-the-number-of-coefficients.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch
29     mirror://${PNAME}/${PNAME}-${PVER}-Check-for-multiplication-overflow-in-sfconvert.patch
30     mirror://${PNAME}/${PNAME}-${PVER}-Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch
31     mirror://${PNAME}/${PNAME}-${PVER}-Actually-fail-when-error-occurs-in-parseFormat.patch
32     mirror://${PNAME}/${PNAME}-${PVER}-Check-for-division-by-zero-in-BlockCodec-runPull.patch
33 niro 30432 )
34    
35     UP2DATE="updatecmd ${HOMEPAGE} | grep download | sed 's/.*version\ \(.*\).*/\1/'"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40    
41 niro 30434 mpatch ${PNAME}-${PVER}-gcc6.patch || die
42     mpatch ${PNAME}-${PVER}-CVE-2015-7747.patch || die
43     mpatch ${PNAME}-${PVER}-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch || die
44     mpatch ${PNAME}-${PVER}-Always-check-the-number-of-coefficients.patch || die
45     mpatch ${PNAME}-${PVER}-Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch || die
46     mpatch ${PNAME}-${PVER}-Check-for-multiplication-overflow-in-sfconvert.patch || die
47     mpatch ${PNAME}-${PVER}-Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch || die
48     mpatch ${PNAME}-${PVER}-Actually-fail-when-error-occurs-in-parseFormat.patch || die
49     mpatch ${PNAME}-${PVER}-Check-for-division-by-zero-in-BlockCodec-runPull.patch || die
50    
51 niro 30432 # don't build any examples
52     all-abis 'sed -i "/^SRC_SUBDIRS/s: examples::" Makefile.am || die'
53    
54     mautoreconf || die
55     }
56    
57     src_compile()
58     {
59     mconfigure --enable-largefile --disable-static --disable-werror || die
60     mmake || die
61     }