# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=x265 pkgver=2.6 pkgrel=0 pkgdesc="Open Source H265/HEVC video encoder" url="http://x265.org" arch="all" license="GPL" makedepends="cmake yasm" # 2.6+ will use nasm instead of yasm subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz" builddir="$srcdir/${pkgname}_v$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="35c3716313e3dfd1555dd725b60f2b3b00a615d8b8d8267439722b52021d47e34eebf94b837b92a92d40c7ffab7b3198d6391365d62672b257c0a87d1db8a736 x265-2.6.tar.gz"