summaryrefslogtreecommitdiffstats
path: root/main/x264/APKBUILD
blob: b6d0a6128921c840f08a81a838c9c7d171ca8adb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x264
pkgver=20100607
pkgrel=0
pkgdesc="free library for encoding H264/AVC video streams"
url="http://www.videolan.org/developers/x264.html"
license="GPL"
depends=
makedepends="libx11-dev bash"
subpackages="$pkgname-dev"
source="http://ftp.videolan.org/pub/videolan/$pkgname/snapshots/$pkgname-snapshot-$pkgver-2245.tar.bz2"

_builddir="$srcdir/$pkgname-snapshot-$pkgver-2245"
build() { 
	cd "$_builddir"
	./configure --prefix=/usr \
		--enable-pthread \
		--enable-visualize \
		--enable-shared \
		--disable-asm \
		--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="d796cbb3eb4ce5126b861aed64d0058e  x264-snapshot-20100607-2245.tar.bz2"