aboutsummaryrefslogtreecommitdiffstats
path: root/main/x264/APKBUILD
blob: e766e0ac349833cb23c41f7e0468bac981851ff1 (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=20130409
pkgrel=2
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"
subpackages="$pkgname-dev"
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-visualize \
		--enable-shared \
		$_asmopts \
		--enable-pic \
		--extra-cflags=-fno-aggressive-loop-optimizations \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install || return 1
}
md5sums="fa3e9e971eb3c8e87fbb217510a609e4  x264-snapshot-20130409-2245-stable.tar.bz2"
sha256sums="f15628ce3a1c04d1b06cd04160515bf1ecf160cffa22349c435029ba88779bdf  x264-snapshot-20130409-2245-stable.tar.bz2"
sha512sums="7fdd47913209e8edc6e1e6e21b3054b6dae54fb5f29cf89693afc5d21fc9e6a1bd6882ee853e8c0b3b5934b0745d373db81a67a725dd9abeb40c91cb28647611  x264-snapshot-20130409-2245-stable.tar.bz2"