# Tanım: Açık Kaynaklı H265/HEVC video kodlayıcı.
# URL: https://bitbucket.org/multicoreware/x265/wiki/Home
# Paketçi: milisarge
# Gerekler: yasm cmake
# Grup: medya

isim=x265
surum=1.8
devir=1
kaynak=(https://bitbucket.org/multicoreware/x265/get/$surum.tar.bz2
 http://www.linuxfromscratch.org/patches/downloads/x265/x265_1.8-enable_static-1.patch)

derle() {
	cd multicoreware-$isim-*
	patch -Np1 -i ../x265_1.8-enable_static-1.patch
	mkdir bld 
	cd bld
	cmake  -DCMAKE_INSTALL_PREFIX=/usr \
      -DENABLE_STATIC=OFF  \
      ../source      
	make
	make DESTDIR=$PKG install
}
