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

# source: post BLFS 7.8 updated 6-12-2018
TARBALL=x265_$PKGVER.tar.gz
MD5SUM=b68dcd4e8a495e53e53034a11fec5eb9
SRC_URL=https://bitbucket.org/multicoreware/x265/downloads/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libx265: libx265 $PKGVER (H.264 codec)  
libx265:  
libx265: x265 package provides a library for encoding video streams into 
libx265: the H.265/HEVC format. 
libx265: 
libx265: 
libx265: 
libx265: 
libx265: 
libx265: 
libx265:
"

### default pkg_download
### prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/x265* &&
	mkdir bld &&
	cd bld &&
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		  -DENABLE_STATIC=OFF         \
		  -DLIB_INSTALL_DIR=$LIBDIR   \
		  ../source                   &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc
	
}
