NAME="aom"
VERSION=3.5.0
RELEASE=1
LICENSE="BSD-3=Clause"
CATEGORY="Libs"
SUMMARY="Royalty-free next-generation video format"
HOMEPAGE="http://aomedia.org/"
SRC_URI="https://aomedia.googlesource.com/${NAME}/+archive/v${VERSION}.tar.gz#/${NAME}-${VERSION}.tar.gz"
SRC_DIR="."

PKG_NAMES="aom libaom3 libaom-devel"
aom_CONTENTS="usr/bin/*.exe"
libaom3_CONTENTS="usr/bin/cyg*.dll usr/share"
libaom_devel_CONTENTS="usr/include/ usr/lib/"

inherit cmake

CYGCMAKE_ARGS="
	-DCMAKE_INSTALL_PREFIX=/usr
	-DENABLE_CCACHE=1
	-DCMAKE_SKIP_RPATH=1
	-DCMAKE_BUILD_TYPE=RelWithDebInfo
	-DCONFIG_WEBM_IO=1
	-DENABLE_DOCS=1
	-DENABLE_TESTS=0
	-DCONFIG_ANALYZER=0
	-DBUILD_SHARED_LIBS=1"
