aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvpx/APKBUILD
blob: 3f788bafe5954a2988ab4d220f7eef100a626345 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
pkgver=1.1.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"
source="http://webm.googlecode.com/files/libvpx-v$_ver.tar.bz2"

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

prepare() {
	cd "$_builddir"
}

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
	chmod 644 "$pkgdir"/usr/include/vpx/*.h
}

md5sums="7ae163ac3196c79ec2f0904280078a45  libvpx-v1.1.0.tar.bz2"