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

# source: BLFS 11.3
TARBALL=x264-20230215.tar.xz
MD5SUM=24eb4eae0d6358f31228c9ff86046c6f
#SRC_URL=http://download.videolan.org/pub/videolan/x264/snapshots/$TARBALL
SRC_URL=https://anduin.linuxfromscratch.org/BLFS/x264/$TARBALL
BUNDLE=

SLACKREQ='' # nasm build time
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: https://www.videolan.org/developers/x264.html
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*

	CONFFLAGS="$CONFFLAGS     \
		--libdir=/usr/$LIBDIR \
		--enable-shared       \
		--enable-pic          \
		--host=${CLFS_TARGET32} \
	" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
