aboutsummaryrefslogtreecommitdiffstats
path: root/main/x264/APKBUILD
blob: d34eea129c2a0a94f093881b9ce13fed581055b0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x264
pkgver=20130409
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"
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=
	if [ "$CARCH" = "x86" ]; then
		_asmopts="--disable-asm"
	fi
	./configure --prefix=/usr \
		--enable-visualize \
		--enable-shared \
		$_asmopts \
		--enable-pic || 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"