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

# 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: libx264 $PKGVER (H.264 codec)  
libx264:  
libx264: x264 is an open-source, high performance H.264 (MPEG4-AVC) encoder.  
libx264: 
libx264: https://www.videolan.org/developers/x264.html
libx264: 
libx264: 
libx264: 
libx264: 
libx264: 
libx264:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/x264*

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