blob: 4d1a18107849c816c8bca8974fb8b83779bbfdb3 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=x265
pkgver=2.4
pkgrel=0
pkgdesc="Open Source H265/HEVC video encoder"
url="https://bitbucket.org/multicoreware/x265"
arch="all"
license="GPL"
makedepends="cmake yasm"
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";;
ppc64le) cmake_opts="-DENABLE_ALTIVEC=OFF";;
esac
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=ON \
$cmake_opts \
../../source
make
}
package() {
cd "$builddir"/build/linux
make DESTDIR="$pkgdir" install
}
sha512sums="40d0e57104839454226cdba928806c12e533eade391a89e9587e1f9c11b8fd70cc54d20136a09a1127784fe7799c80425617280076b29e1a1ffff7ce44f07dbe x265-2.4.tar.gz"
|