PKGBUILDs/extra/libvpx/PKGBUILD

61 lines
1.4 KiB
Bash
Raw Normal View History

2016-08-05 00:03:30 +00:00
# $Id$
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2011-01-23 19:01:50 +00:00
2012-02-07 13:46:49 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2013-12-07 21:39:15 +00:00
# - patch to fix building
2015-04-21 12:40:23 +00:00
# - disable neon and neon-asm
2011-01-23 19:01:50 +00:00
pkgname=libvpx
2016-08-05 00:03:30 +00:00
pkgver=1.6.0
pkgrel=2
2015-04-21 11:57:20 +00:00
pkgdesc='VP8 and VP9 codec'
2011-01-23 19:01:50 +00:00
arch=('i686' 'x86_64')
2013-12-07 19:24:13 +00:00
url='http://www.webmproject.org/'
2011-01-23 19:01:50 +00:00
license=('BSD')
2015-04-21 12:17:51 +00:00
depends=('glibc' 'gcc-libs')
2013-12-07 19:24:13 +00:00
makedepends=('yasm' 'git')
2015-04-21 12:17:51 +00:00
provides=('libvpx.so')
2016-08-05 00:03:30 +00:00
source=("libvpx-${pkgver}.tar.gz::https://github.com/webmproject/libvpx/archive/v${pkgver}.tar.gz"
2013-12-07 21:39:15 +00:00
fix-armhf-link.patch)
2016-08-05 00:03:30 +00:00
sha256sums=('e2fc00c9f60c76f91a1cde16a2356e33a45b76a5a5a1370df65fd57052a4994a'
'66cbce8fc6a00e418fdc6d08b196861b699f45b1db115b2c707b9a70d1081348')
2015-04-21 11:57:20 +00:00
prepare() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
2016-01-24 15:27:04 +00:00
2015-04-21 11:57:20 +00:00
patch -p1 -i ../fix-armhf-link.patch
}
2011-01-23 19:01:50 +00:00
build() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
2016-01-24 15:27:04 +00:00
2016-08-05 00:03:30 +00:00
./configure \
--prefix='/usr' \
2015-04-21 11:57:20 +00:00
--enable-runtime-cpu-detect \
--enable-shared \
--enable-pic \
--disable-install-docs \
--disable-install-srcs \
2016-08-05 00:03:30 +00:00
--enable-vp8 \
--enable-postproc \
--enable-vp9 \
--enable-vp9-highbitdepth \
--enable-experimental \
--enable-spatial-svc \
2015-04-21 12:40:23 +00:00
--disable-neon --disable-neon-asm
2016-08-05 00:03:30 +00:00
2015-04-21 11:57:20 +00:00
make
2011-03-09 06:40:49 +00:00
}
package() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
make DIST_DIR="${pkgdir}"/usr install
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/libvpx/
2011-01-23 19:01:50 +00:00
}
2016-08-05 00:03:30 +00:00
# vim: ts=2 sw=2 et: