aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvpx/APKBUILD
blob: a040de957a009817ee7a111684b18fb01c4da77a (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"
sha256sums="9ce074cf4b3bcd9a49ff93e05485b71c273bfc3685a305e55a0e7fa51beb72c5  libvpx-v1.1.0.tar.bz2
d0eafca9e8d16e3d9b68b0ffb66b771a18515a410a0c1100f3a7984bb260ef68  libm-pc.patch"
sha512sums="5c165a1a171143f7c406ef899914a353d35f6dec0e3c49eec9a4f3311fd4072dea2e0da8ceb80651ad23e24cdbf2d6da328805bda8be042bbea2c65c9e53eaaa  libvpx-v1.1.0.tar.bz2
3b02b541cb45a9006aa887468a8444933df57a8159995bf5488e33f270f7206f6a456fc02678a36814d8b27c3edfb0799c8d21514077a29f1fe81960bbc74ed3  libm-pc.patch"