### this file is sourced not run
PKGVER=3.100
PKGBUILD=1
PKGARCH=i686

# source: BLFS 7.5 updated 6-12-2018
TARBALL=lame-$PKGVER.tar.gz
MD5SUM=83e260acbe4389b54fe08e0bdbf7cddb 
SRC_URL=http://downloads.sourceforge.net/lame/$TARBALL
BUNDLE=

SLACKREQ='libsndfile32'
SLACKDESC="lame32: lame32 $PKGVER (MP3 encoder)"'
lame32:  
lame32: The LAME package contains an MP3 encoder and optionally, an MP3 frame 
lame32: analyzer. This is useful for creating and analyzing compressed audio 
lame32: files.  
lame32: 
lame32: This contains 32-bit version of the library.
lame32: 
lame32: 
lame32: 
lame32:
'

### default pkg_download
### default pkg_prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/lame* && 
	case $(uname -m) in
   i?86) sed -i -e 's/<xmmintrin.h/&.nouse/' configure ;;
esac
}
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
#	return 1
	CONFFLAGS="$CONFFLAGS --enable-mp3rtp --disable-static"
	MAKEINSTALLFLAGS="pkghtmldir=/usr/share/doc/lame-$PKGVER"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}



