# $Id$ PNAME="x264" PVER="20141218_2245" PBUILD="r1" PCAT="media-libs" DESCRIPTION="x264 is a free AVC/H.264 video encoder library." HOMEPAGE="http://developers.videolan.org/x264.html" DEPEND=">= virtual/glibc" SDEPEND=">= dev-lang/yasm-1.3" SRCFILE="${PNAME}-snapshot-${PVER/_/-}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-snapshot-${PVER/_/-}" EMUL_LINUX_32="true" sminclude mbuild multilib msetfeature "!check" SRC_URI=( ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) # do not autoupdate this package as it has daily snapshots UP2DATE="echo ${PVER}" # note: we build a seperate lib and util package to prevent depwalker loops # when resolving packages: # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile src_compile() { mconfigure \ --enable-pic \ --enable-shared \ --enable-pthread \ --disable-mp4-output \ --disable-cli \ || die mmake || die } postinstall() { echo echo "Please note that this package only installs the" echo "x264 libraries. In order to have the encoder," echo "please install 'media-video/x264-encoder'." echo }