aboutsummaryrefslogtreecommitdiffstats
path: root/main/x265/APKBUILD
blob: 91835bf53cee24d4ccc3bf6a4defd76e9a38b12b (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=x265
pkgver=1.8
pkgrel=0
pkgdesc="Open Source H265/HEVC video encoder"
url="https://bitbucket.org/multicoreware/x265"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev cmake yasm"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz"

_builddir="$srcdir"/x265_11047
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"/build/linux
	local CMAKE_OPS="-DCMAKE_INSTALL_PREFIX=/usr"
	# has textrel on x86 so we disable asm
	if [ "$CARCH" = x86 ] ; then
		CMAKE_OPS="$CMAKE_OPS -DENABLE_ASSEMBLY=OFF"
	fi
	cmake -G "Unix Makefiles" $CMAKE_OPS ../../source
}

package() {
	cd "$_builddir"/build/linux
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="8b7ef9bc0b5bd26965d05a4508effeed  x265-1.8.tar.gz"
sha256sums="760e6280c688f1ea90c492d19fc6d4084ca1c4b0ea9b2e3c736d32565c30d857  x265-1.8.tar.gz"
sha512sums="498c25ff6e5c68849db11d1509cc6f7e96d3a2e6594542589ac5b9f6d65a09ab3af590dcc3357f985f218f8d54af364c998cfedfbe95644747835c059214935c  x265-1.8.tar.gz"