if ! pkg-config --exists x265; then cd $SRC hg clone https://bitbucket.org/multicoreware/x265 cd $SRC/x265/build/linux cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$BUILD" -DENABLE_SHARED:bool=off ../../source make -j ${NUMBER_OF_JOBS} make install make distclean fi;