From def05c2207c651236e58140d77ab912baa62d503 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 26 May 2015 12:02:50 +0200 Subject: [PATCH] x264: update for cross arm*-musl. --- srcpkgs/x264/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/x264/template b/srcpkgs/x264/template index 8f9fba21515..99f27e6fc38 100644 --- a/srcpkgs/x264/template +++ b/srcpkgs/x264/template @@ -14,11 +14,10 @@ distfiles="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapsho checksum=3519e8fa3399845c7d2248d0a7297a923ac6bdc78d0ec15e85026e810670e1be do_configure() { - if [ "$XBPS_TARGET_MACHINE" = "armv6l" ] || [ "$XBPS_TARGET_MACHINE" = "armv5tel" ]; then - args+=" --disable-asm" - elif [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then - export AS=$CC - fi + case "$XBPS_TARGET_MACHINE" in + armv[56]*) args+=" --disable-asm";; + armv7*) export AS=$CC;; + esac if [ "$CROSS_BUILD" ]; then args+=" --host=$XBPS_CROSS_TRIPLET" fi