blob: 1f56f07f04bf1117ad5757b0dd3052827e8f2f38 (
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=20160710
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="ef5ebd0c84291dcce599c6b932d57af4 x264-snapshot-20160710-2245-stable.tar.bz2"
sha256sums="06b2b8c5912c3fc7097a80ca041045aa454ffb0078e37cd7e63206d4ad192eaf x264-snapshot-20160710-2245-stable.tar.bz2"
sha512sums="daff1c351fa91c668692efe4369adc0256887de9d7952952336c14125da5bbf31c7bca3611eca7ec8ca49f7469e34da092620d78329101757e65ae0fbadc87d8 x264-snapshot-20160710-2245-stable.tar.bz2"
|