# Maintainer: Natanael Copa pkgname=libvpx pkgver=1.1.0 _ver=${pkgver/_/-} pkgrel=1 pkgdesc="Library for the vp8 codec" url="http://www.webmproject.org/" arch="all" license="GPL" depends= makedepends="coreutils yasm bash perl" install= subpackages="$pkgname-dev $pkgname-utils" patches="libm-pc.patch" source="http://webm.googlecode.com/files/libvpx-v$_ver.tar.bz2 $patches" _builddir="$srcdir"/$pkgname-v$_ver prepare() { cd "$_builddir" for i in $patches; do msg $i patch -p1 -i "$srcdir"/$i || return 1 done } build() { cd "$_builddir" ./configure \ --enable-pic \ --enable-libs \ --enable-runtime-cpu-detect \ --enable-vp8 \ --enable-shared \ --disable-install-srcs \ || return 1 make || return 1 } package() { cd "$_builddir" make DIST_DIR="$pkgdir"/usr install chmod 644 "$pkgdir"/usr/include/vpx/*.h } utils() { pkgdesc="VP8 utilities and tools" install -d "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="7ae163ac3196c79ec2f0904280078a45 libvpx-v1.1.0.tar.bz2 8a0ec70d65975dde522ece92e9eeb7f1 libm-pc.patch"