blob: 431c1398b595cd38d1fdf512db801eb15587e11c (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x264
pkgver=20160515
pkgrel=0
pkgdesc="free library for encoding H264/AVC video streams"
url="http://www.videolan.org/developers/x264.html"
arch="all"
license="GPL"
depends=
makedepends="libx11-dev bash yasm coreutils perl"
subpackages="$pkgname-dev $pkgname-libs"
source="ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-$pkgver-2245-stable.tar.bz2"
_builddir="$srcdir/$pkgname-snapshot-$pkgver-2245-stable"
build() {
cd "$_builddir"
local _asmopts=
case "$CARCH" in
# x86 assembly contains TEXTRELs
# arm neon assembly contains TEXTRELs
x86 | arm*) _asmopts="--disable-asm"
esac
# note: not autotools
./configure \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
$_asmopts \
--enable-pic \
--extra-cflags=-fno-aggressive-loop-optimizations \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -C "$_builddir" DESTDIR="$pkgdir" \
bindir=/usr/bin libdir=/usr/lib includedir=/usr/include \
install || return 1
}
md5sums="dd255f8c50e9e56a8e87f5ac6fed5463 x264-snapshot-20160515-2245-stable.tar.bz2"
sha256sums="f7ddd373820d84f5320268070e8a90ced30b9a96cf830028dc051473d23879cb x264-snapshot-20160515-2245-stable.tar.bz2"
sha512sums="414db8cce8ddc629bec7034c3be8408fff4da2257a12078d5b91d7b6c4f4dd08c760211948aaad32b9adbe4bae8bd8347f08b35733a65a6103cf234e5c723976 x264-snapshot-20160515-2245-stable.tar.bz2"
|