From 58c5cfd62b27d5fe7db48d9d2e1c778d1a34efd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 15 Jan 2017 14:12:15 +0100 Subject: [PATCH] x265: fix cross The arm* and aarch64* architectures don't (yet) use any acceleration or assembler code. All cross targets only use the C implementations. --- srcpkgs/x265/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template index 71a7970d0f7..8e72afeb3a1 100644 --- a/srcpkgs/x265/template +++ b/srcpkgs/x265/template @@ -12,8 +12,10 @@ homepage="http://x265.org/" license="GPL-2" distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz" checksum=b872552535e41fbffa03ba7cbcd3479c42c4053868309292e78e147b7773ac4b -nocross=yes -only_for_archs="i686 i686-musl x86_64 x86_64-musl" # CMakeList is utterly broken. + +if [ -n "$CROSS_BUILD" ]; then + configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${CROSS_BUILD%-musl}" +fi x265-devel_package() { depends="${sourcepkg}>=${version}_${revision}"