makedepends=(yasm)

description="The VP8 Codec SDK"
url="http://webm.googlecode.com/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=libvpx
version=1.15.2

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/webmproject/$name/archive/v$version.tar.gz)

build() {
cd $name-$version

sed   -e 's/cp -p/cp/'       \
      -i build/make/Makefile 

chmod -v 644 vpx/*.h 

mkdir ../build
cd ../build

../libvpx-$version/configure --prefix=/usr \
                             --enable-shared \
                             --disable-static \
                             --enable-pic \
                             --enable-postproc \
                             --enable-runtime-cpu-detect \
                             --enable-vp8 \
                             --enable-vp9 \
                             --enable-vp9-highbitdepth \
                             --enable-vp9-temporal-denoising

make

make DIST_DIR="${PKG}"/usr install
}
