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

# source: post BLFS 7.8 updated 6-12-2018
TARBALL=x264-snapshot-20180612-2245-stable.tar.bz2
MD5SUM=9548504baf96d478ac3cf702ded8bb44
SRC_URL=http://download.videolan.org/pub/videolan/x264/snapshots/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libx264_32: libx264_32 $PKGVER (H.264 codec)  
libx264_32:  
libx264_32: x264 is an open-source, high performance H.264 (MPEG4-AVC) encoder.  
libx264_32: 
libx264_32: This contains 32-bit version of the library.
libx264_32: 
libx264_32: 
libx264_32: 
libx264_32: 
libx264_32: 
libx264_32:
"

### 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/x264*
#	return 1	
	./configure --prefix=/usr --libdir=/usr/$LIBDIR \
		--enable-shared --enable-pic \
		--host=${CLFS_TARGET32} &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc
}
