summaryrefslogblamecommitdiff
path: root/user/x265/APKBUILD
blob: cf8090f45819fc883c620b63825a787f1921c7b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                     
          



                                             

                      


                                                                                                                   
                                 
                                  
                                     



                                  

                           
                                                                                    



                                                                          
                                                     





















                                                                           

                                                                                                                                                             
                                                                                                                                                            
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=x265
pkgver=2.8
pkgrel=0
pkgdesc="Open Source H265/HEVC video encoder"
url="http://x265.org"
arch="all"
options="textrel"
license="GPL-2.0-only"
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
	work-on-any-non-x86.patch
	x265-unbreak-my-arm.patch"
builddir="$srcdir/${pkgname}_$pkgver"

build() {
	cd "$builddir"/build/linux

	local cmake_opts=""
	case "$CARCH" in
		# unfortunately, AltiVec code is very broken (more than 1000 errors)
		ppc*) cmake_opts="-DENABLE_ALTIVEC=OFF -DCPU_POWER8=OFF";;
	esac

	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		$cmake_opts \
		../../source
	make
}

check() {
	cd "$builddir"/build/linux

	# LEAVE THIS.
	# every breakage so far has been SIGILL, which IS detected by this.
	# LEAVE IT!
	./x265 --version
}

package() {
	cd "$builddir"/build/linux

	make DESTDIR="$pkgdir" install
}

sha512sums="c2a8eaec64aa022badcbcd2a96304a9abd9d08489300b6a9c4c9d76066f3d9848e6948238c84ae16ea91bff0b2fac528a67ee29950d94dcd0ea7c0e9e7baa714  x265-2.8.tar.gz
cbd0372fe5d83047314be71da89694ccd28dab6f183ae55bafed4a1bf81861d47877c77838ab6dc72e54f268390f8ae4076be17ece1cf721147c2c4bbf3c2900  work-on-any-non-x86.patch
ac3ecc613fe4da11672de8f397b5541fe2af29b7dd91a48859bfe8824934a5966c41ca30de242564c46f1a0cdd2a0da9331d9f547fc21120066fb3c45347c4c4  x265-unbreak-my-arm.patch"