compat-32/libsndfile-32/Pkgfile

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2013-08-10 13:16:14 +02:00
# Description: Library for manipulating sound files.
# URL: http://www.mega-nerd.com/libsndfile
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: flac-32 alsa-lib-32 libvorbis-32 libsndfile
2013-08-10 13:16:14 +02:00
name=libsndfile-32
2017-10-12 14:47:23 +02:00
version=1.0.28
2016-06-28 02:28:21 +02:00
release=1
2017-10-12 14:47:23 +02:00
source=(http://www.mega-nerd.com/libsndfile/files/libsndfile-$version.tar.gz
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)
2013-08-10 13:16:14 +02:00
build() {
cd libsndfile-$version
2017-10-12 14:47:23 +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
patch -p1 -i $SRC/0020-src-common.c-Fix-heap-buffer-overflows-when-writing.patch
2013-08-10 13:16:14 +02:00
./configure \
--prefix=/usr \
2017-10-12 14:47:23 +02:00
--libdir=/usr/lib32 \
--disable-static \
--with-pic
2013-08-10 13:16:14 +02:00
make
make DESTDIR=$PKG install
2016-06-28 02:28:21 +02:00
rm -r $PKG/usr/{bin,include,share/man,share}
2013-08-10 13:16:14 +02:00
}