aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvpx/APKBUILD
blob: e5514282e90c2b0970ed7ebcf87d4818788b8792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
_ver=0.9.0
_git=100617
pkgver=0.9.0_git$_git
pkgrel=0
pkgdesc="Library for the vp8 codec"
url="http://www.webmproject.org/"
license="GPL"
depends=
makedepends="coreutils yasm"
install=
subpackages="$pkgname-dev"
source="http://webm.googlecode.com/files/libvpx-$_ver.tar.bz2
	git100617.patch"

_builddir="$srcdir"/$pkgname-$_ver

prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/git100617.patch
}

build() {
	cd "$_builddir"
	./configure \
		--enable-pic \
		--enable-libs \
		--enable-runtime-cpu-detect \
		--enable-vp8 \
		--disable-install-srcs \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DIST_DIR="$pkgdir"/usr install
}

md5sums="9eb8e818d2f3263623c258fe66924082  libvpx-0.9.0.tar.bz2
4339d51cc3b95ce5b577f4a84c7b4d2c  git100617.patch"