2014-01-19 22:10:49 +01:00
|
|
|
# Description: Library for manipulating sound files.
|
|
|
|
# URL: http://www.mega-nerd.com/libsndfile
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2014-01-19 22:10:49 +01:00
|
|
|
# Depends on: flac alsa-lib libvorbis
|
|
|
|
|
|
|
|
name=libsndfile
|
2017-08-31 16:14:55 +02:00
|
|
|
version=1.0.28
|
2014-01-19 22:10:49 +01:00
|
|
|
release=1
|
2017-08-31 16:14:55 +02:00
|
|
|
source=(http://www.mega-nerd.com/$name/files/$name-$version.tar.gz
|
2017-10-12 23:30:11 +11:00
|
|
|
0001-FLAC-Fix-a-buffer-read-overrun.patch
|
|
|
|
0002-src-flac.c-Fix-a-buffer-read-overflow.patch
|
|
|
|
0010-src-aiff.c-Fix-a-buffer-read-overflow.patch
|
|
|
|
0020-src-common.c-Fix-heap-buffer-overflows-when-writing.patch)
|
2014-01-19 22:10:49 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2017-08-31 16:14:55 +02:00
|
|
|
patch -p1 -i $SRC/0001-FLAC-Fix-a-buffer-read-overrun.patch
|
|
|
|
patch -p1 -i $SRC/0002-src-flac.c-Fix-a-buffer-read-overflow.patch
|
|
|
|
patch -p1 -i $SRC/0010-src-aiff.c-Fix-a-buffer-read-overflow.patch
|
2017-10-12 23:30:11 +11:00
|
|
|
patch -p1 -i $SRC/0020-src-common.c-Fix-heap-buffer-overflows-when-writing.patch
|
2014-01-19 22:10:49 +01:00
|
|
|
|
2017-10-12 23:30:11 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2017-08-31 16:14:55 +02:00
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2017-10-12 23:30:11 +11:00
|
|
|
|
2014-01-19 22:10:49 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-11-04 12:34:50 +11:00
|
|
|
|
2014-01-19 22:10:49 +01:00
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
}
|