blob: 9995e36e50b905283341d11b08c91eee7991fd98 (
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
|
# $Id: PKGBUILD 201279 2013-12-07 18:33:32Z bpiotrowski $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=libvpx
pkgver=1.3.0
pkgrel=1
pkgdesc='The VP8 Codec SDK'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.webmproject.org/'
license=('BSD')
depends=('glibc')
makedepends=('git')
[ "$CARCH" != "mips64el" ] && makedepends+=('yasm')
source=($pkgname::git+http://code.google.com/p/webm.libvpx#tag=v$pkgver
mips64el.patch)
md5sums=('SKIP'
'78ea367dc417f64ad3ce8e33fda210e56a083f4b')
prepare() {
if [ "$CARCH" = "mips64el" ]; then
patch -Np1 -i ${srcdir}/mips64el.patch
fi
}
build() {
if [ "$CARCH" = "mips64el" ]; then
extra="--target=mips64el-linux-gcc"
fi
cd $pkgname
./configure --prefix=/usr \
--enable-vp8 \
--enable-vp9 \
--enable-runtime-cpu-detect \
--enable-shared \
--enable-postproc \
--enable-pic \
--disable-install-docs \
--disable-install-srcs $extra
make
}
package() {
cd $pkgname
make DIST_DIR="$pkgdir/usr" install
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|