APP=x264
VERSION=0.155
BUILD=1sml
VERSIONLONG=snapshot-20180831-2245-stable
HOMEPAGE='http://www.videolan.org/developers/x264.html'
DESC="free h264/avc encoder"
REQUIRES="nasm"

build() {
  mkandenterbuilddir
  rm -rf "$APP-$VERSIONLONG"

  tar xf $SRCDIR/$APP-$VERSIONLONG.tar.?z*
  cd "$APP-$VERSIONLONG"
  fixbuilddirpermissions

  # Let x264 use its own optimized -O3 -ffast-math compiler flags.
  unset CFLAGS CXXFLAGS

  ./configure \
    --prefix="" \
    --enable-shared 

  make
  make install DESTDIR=$PKG

  cp AUTHORS COPYING doc/* $PKGDOCS/
  removestaticlibs

  mkfinalpkg
}

SHA512SUMS="
e2472af814c2bf57c0ce293e0b74ca27cd567874ba953dcf995470ba2357b4c1b27a2c51b0033c01afff9d9897ed78f53ca4be30e24036106ec2df5671234223  x264-snapshot-20180831-2245-stable.tar.lz
"
