blob: ea68f157b729bc553fc2c09ffc8ffa40ca5a71bd (
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
46
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x265
pkgver=2.7
pkgrel=1
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"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}_$pkgver"
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=Release \
-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="58582ff5c282a8ca6213a98495b95fa941f323fa454924e4751dde6d2a0e87a08d6e8d98012164a3d83523f2b004e7a1420b60b64719fe30f460dd10ec075094 x265-2.7.tar.gz"
|