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

# 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="libspeex: libspeex $PKGVER (Speex audio codec)  
libspeex:  
libspeex: Speex is an audio compression format designed especially for speech. 
libspeex: It is well-adapted to internet applications and provides useful 
libspeex: features that are not present in most other CODECs.  
libspeex: 
libspeex: 
libspeex: 
libspeex: 
libspeex: 
libspeex:  
"

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

### default pkg_package
### 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
}
