blob: a3285a4df6c045a7a6cd68842312d8a85eabc03d (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x264
pkgver=20161201
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
}
sha512sums="ad705afa88de2ba421a46e0fc7f51949c712f0fee7c4ab91f966b0f1826ffa98b1fdb579744049137650cdd360ee7ecc8a1247e63f893c1f3773a9ed09df73a5 x264-snapshot-20161201-2245-stable.tar.bz2"
|