blob: 9d6ce3aaf0ef8979b5454308eaeba8b3b129da16 (
plain) (
blame)
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@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x265
pkgver=3.4
pkgrel=0
pkgdesc="Open Source H265/HEVC video encoder"
url="http://x265.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="cmake nasm"
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/videolan/x265/archive/$pkgver.tar.gz"
build() {
cd "$builddir"/build/linux
# It has textrel on x86 so we disable asm.
local cmake_opts=""
case "$CARCH" in
x86) cmake_opts="-DENABLE_ASSEMBLY=OFF";;
ppc*) cmake_opts="-DENABLE_ALTIVEC=OFF -DCPU_POWER8=OFF";;
esac
cmake \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=ON \
$cmake_opts \
../../source
make
}
check() {
cd "$builddir"/build/linux
./x265 --version
}
package() {
cd "$builddir"/build/linux
make DESTDIR="$pkgdir" install
}
sha512sums="17639324c9428087cda9cfa5b57bcb82403226ec5b4fc0da46028e0700452f7bb12df0f4f3a8fd5d70ebdd912ba7589bd99b01c9b7e0d4fa00424e1502580090 x265-3.4.tar.gz"
|