blob: dc1a9bc2388c6a1dde38adcb7569913b16e1a49f (
plain)
1 # Description: Library for manipulating sound files.
2 # URL: http://www.mega-nerd.com/libsndfile
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: alsa-lib flac libvorbis
5 # Optional: sqlite3
6
7 name=libsndfile
8 version=1.0.28
9 release=1
10 source=(http://www.mega-nerd.com/$name/files/$name-$version.tar.gz
11 0001-FLAC-Fix-a-buffer-read-overrun.patch
12 0002-src-flac.c-Fix-a-buffer-read-overflow.patch
13 0010-src-aiff.c-Fix-a-buffer-read-overflow.patch
14 0020-src-common.c-Fix-heap-buffer-overflows-when-writing.patch)
15
16 build() {
17 cd $name-$version
18
19 patch -p1 -i $SRC/0001-FLAC-Fix-a-buffer-read-overrun.patch
20 patch -p1 -i $SRC/0002-src-flac.c-Fix-a-buffer-read-overflow.patch
21 patch -p1 -i $SRC/0010-src-aiff.c-Fix-a-buffer-read-overflow.patch
22 patch -p1 -i $SRC/0020-src-common.c-Fix-heap-buffer-overflows-when-writing.patch
23
24 ./configure \
25 --prefix=/usr \
26 --disable-static \
27 --with-pic
28
29 make
30 make DESTDIR=$PKG install
31
32 rm -r $PKG/usr/share/doc
33 }
|