aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvpx/APKBUILD
blob: a4dea3bba71db8f69ceef5357080d936cef13158 (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
59
60
61
62
63
64
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
pkgver=1.5.0
_ver=${pkgver/_/-}
pkgrel=0
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"
source="http://dev.alpinelinux.org/archive/libvpx/libvpx-$pkgver.tar.gz"

# git clone https://code.google.com/p/webm.libvpx
# git archive ...
# git archive --prefix libvpx-$pkgver/ --format tar.gz -o ../libvpx-$pkgver.tar.gz v$pkgver

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

prepare() {
	cd "$_builddir"
	for i in $patches; do
		msg $i
		patch -p1 -i "$srcdir"/$i || return 1
	done
}

build() {
	cd "$_builddir"
	# build fix for arm
	export CROSS=" "
	bash ./configure \
		--enable-pic \
		--enable-libs \
		--enable-runtime-cpu-detect \
		--enable-vp8 \
		--enable-vp9 \
		--enable-shared \
		--disable-install-srcs \
		--enable-postproc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DIST_DIR="$pkgdir"/usr install
	chmod 644 "$pkgdir"/usr/include/vpx/*.h \
		"$pkgdir"/usr/lib/pkgconfig/* || return 1
	chown root:root -R "$pkgdir" || return 1
	chmod 755 "$pkgdir"/usr/lib/* || return 1
}

utils() {
	pkgdesc="VP8 utilities and tools"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="3ee354ac638de8408fa4cb1ac3283cf2  libvpx-1.5.0.tar.gz"
sha256sums="832d47aba166d810b9db2a6d686617b65c0684a0a3251638fa325a6d869c40e0  libvpx-1.5.0.tar.gz"
sha512sums="6e0205b3728bce238658daaabd28f373d18e54494b098bdea63e4e66519f36fde9017266874a8a064dd55effff4ce2ab50fdcb03bcf9a1563c62b1597eb11832  libvpx-1.5.0.tar.gz"