summaryrefslogtreecommitdiff
path: root/extra/libvpx/PKGBUILD
blob: 93d3a494f76dbc529ee14b1a49221fc57cd192d4 (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
# $Id: PKGBUILD 158895 2012-05-12 18:37:10Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=libvpx
pkgver=1.1.0
pkgrel=1
pkgdesc="The VP8 Codec SDK"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.webmproject.org/"
license=('BSD')
depends=('glibc')
makedepends=('yasm')
source=(http://webm.googlecode.com/files/$pkgname-v$pkgver.tar.bz2
        mips64el.patch)
sha1sums=('356af5f770c50cd021c60863203d8f30164f6021'
          '4fd775826a4d737102f831c451235a58947f2cde')

build() {
    cd "$srcdir/$pkgname-v$pkgver"

    if [ "$CARCH" = "mips64el" ]; then
      extra="--target=mips64el-linux-gcc"
      patch -Np1 -i ${srcdir}/mips64el.patch
    fi

    ./configure --prefix=/usr --enable-vp8 \
        --enable-runtime-cpu-detect \
        --enable-shared \
        --enable-postproc \
        --enable-pic \
        --disable-install-docs \
        --disable-install-srcs $extra
    make
}

package() {
    cd "$pkgname-v$pkgver"
    make DIST_DIR="$pkgdir/usr" install
    install -D -m 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}