### this file is sourced not run
PKGVER=1.2.0
PKGVERDSP=1.2rc3
PKGBUILD=1
PKGARCH=i686

# source: post BLFS 7.8 2015-12-28
TARBALL=speex-$PKGVER.tar.gz
MD5SUM=8ab7bb2589110dfaf0ed7fa7757dc49c
SRC_URL=http://downloads.us.xiph.org/releases/speex/$TARBALL
BUNDLE=

TARBALL2=speexdsp-$PKGVERDSP.tar.gz
MD5SUM2=70d9d31184f7eb761192fd1ef0b73333
SRC_URL2=http://downloads.us.xiph.org/releases/speex/$TARBALL2

SLACKREQ=
SLACKDESC="libspeex32: libspeex32 $PKGVER (Speex audio codec)  
libspeex32:  
libspeex32: Speex is an audio compression format designed especially for speech. 
libspeex32: It is well-adapted to internet applications and provides useful 
libspeex32: features that are not present in most other CODECs.  
libspeex32: 
libspeex32: This contains 32-bit version of the library. 
libspeex32: 
libspeex32: 
libspeex32: 
libspeex32:  
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	TARBALL=$TARBALL2 SRC_URL=$SRC_URL2 MD5SUM=$MD5SUM2 &&
	pkg_prepare_default
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/speex-* &&
	./configure $CONFFLAGS --disable-static --docdir=/usr/share/doc/speex-$PKGVER && 
	make && make install &&
	cd ../speexdsp* &&
	./configure $CONFFLAGS --disable-static --docdir=/usr/share/doc/speexdsp-$PKGVERDSP && 
	make && make install &&
	pkg_build_slackdesc
}
