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