summaryrefslogtreecommitdiffstats
path: root/main/libvpx/APKBUILD
blob: b2c043c0ab3bd7c51adfcf566a60b4773e313818 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
pkgver=1.2.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="ftp://ftp.archlinux.org/other/libvpx/libvpx-$pkgver.tar.xz"

_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-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="2a5228c1d3807cf1313ec41914debb5d  libvpx-1.2.0.tar.xz"
sha256sums="a030b9334ac6d3c9ac2561f1ff487aa0faf79272429057b1dc50e4c735f5690a  libvpx-1.2.0.tar.xz"
sha512sums="192cde9d018d76346f0116a8ba5f9e0afe72e778aeb7b77f7662449245568cb2169405ed9ecc3341eacd8dc3b9cefcea87b047015d6f3e1b38873cefef4ba00e  libvpx-1.2.0.tar.xz"