summaryrefslogtreecommitdiff
path: root/user/x264/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 05:29:35 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 05:29:35 +0000
commit9d8fceff4200fc464d8e12f532f4841e8cca45b8 (patch)
tree62f8b2beb4af8cd8fe4cde06ee33109c4162a77a /user/x264/APKBUILD
parent49db7988ec062cc42f31afb6df25f9afeed60938 (diff)
downloadpackages-9d8fceff4200fc464d8e12f532f4841e8cca45b8.tar.gz
packages-9d8fceff4200fc464d8e12f532f4841e8cca45b8.tar.bz2
packages-9d8fceff4200fc464d8e12f532f4841e8cca45b8.tar.xz
packages-9d8fceff4200fc464d8e12f532f4841e8cca45b8.zip
user/x264: fix build on pmmx
Diffstat (limited to 'user/x264/APKBUILD')
-rw-r--r--user/x264/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/user/x264/APKBUILD b/user/x264/APKBUILD
index 81412a1bb..edae76ade 100644
--- a/user/x264/APKBUILD
+++ b/user/x264/APKBUILD
@@ -8,7 +8,9 @@ arch="all"
license="GPL-2.0+"
options="textrels"
makedepends="bash coreutils libx11-dev perl"
-[ $CARCH == x86_64 ] && makedepends="$makedepends yasm"
+case $CTARGET_ARCH in
+ x86_64) makedepends="$makedepends yasm";;
+esac
subpackages="$pkgname-dev $pkgname-libs"
source="ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-$pkgver-2245-stable.tar.bz2"
builddir="$srcdir/$pkgname-snapshot-$pkgver-2245-stable"
@@ -19,7 +21,7 @@ build() {
local asmopts=
case "$CARCH" in
# ppc requires AltiVec, we run on G3s
- ppc) asmopts="--disable-asm" ;;
+ ppc | pmmx) asmopts="--disable-asm" ;;
# VSX was added in power8
ppc64) asmopts="--disable-vsx" ;;
esac