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

# source: post BLFS 7.8 2016-01-06
TARBALL=libvpx-$PKGVER.tar.bz2
MD5SUM=49e59dd184caa255886683facea56fca
#MD5SUM=f95a176768a0e1bb4fe42742e27a41af # 1.6.0
SRC_URL=http://storage.googleapis.com/downloads.webmproject.org/releases/webm/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libvpx32: libvpx32 $PKGVER (Webm codec)  
libvpx32:  
libvpx32: This package, from the WebM project, provides the reference 
libvpx32: implementations of the VP8 Codec, used in most current html5 video, 
libvpx32: and of the next-generation VP9 Codec.  
libvpx32: 
libvpx32: This contains 32-bit version of the library.
libvpx32: 
libvpx32: 
libvpx32: 
libvpx32:
"

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

### build
pkg_build() {
	cd /tmp/libvpx*		
	sed -i 's/cp -p/cp/' build/make/Makefile &&
	mkdir ../build &&
	cd ../build &&
	../libvpx*/configure --prefix=/usr \
		--libdir=/usr/$LIBDIR \
		--enable-shared \
		--target=x86-linux-gcc \
		--disable-static &&
	make $MAKEFLAGS &&
	make install &&

	pkg_build_slackdesc
}



