summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaya <maya>2016-10-02 20:34:48 +0000
committermaya <maya>2016-10-02 20:34:48 +0000
commit88c48664fed925552593408d7a52fe61aed700b9 (patch)
tree2b59a6c37a2e5a799c1bb236cbea9dbe5fe7269b
parented7da2ff823c38bf62fa2a314bdba6785f13d068 (diff)
downloadpkgsrc-88c48664fed925552593408d7a52fe61aed700b9.tar.gz
x264-devel: if we don't pass the assembly test, e.g. if we don't
pass optimizing flags (like default netbsd setup), just act as if we passed --disable-asm, as opposed to passing it for netbsd/arm. - now other operating systems that don't optimize won't fail here. - if someone does pass optimization, he benefits from it - I don't have to define another case in the Makefile for MIPS
-rw-r--r--multimedia/x264-devel/Makefile5
-rw-r--r--multimedia/x264-devel/distinfo4
-rw-r--r--multimedia/x264-devel/patches/patch-aa38
3 files changed, 40 insertions, 7 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile
index 51f33276f6c..9522d21fcb9 100644
--- a/multimedia/x264-devel/Makefile
+++ b/multimedia/x264-devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2016/07/09 06:38:40 wiz Exp $
+# $NetBSD: Makefile,v 1.59 2016/10/02 20:34:48 maya Exp $
SNAPSHOT_DATE= 20160307
@@ -44,9 +44,6 @@ CONFIGURE_ARGS+= --disable-asm
. else
BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm
. endif
-.elif ${MACHINE_ARCH} == "arm" && ${OPSYS} == "NetBSD"
-# pre-ARMv6 is default on NetBSD/arm
-CONFIGURE_ARGS+= --disable-asm
.endif
USE_TOOLS+= bash gmake
diff --git a/multimedia/x264-devel/distinfo b/multimedia/x264-devel/distinfo
index 7c734743795..6ba0665b1a6 100644
--- a/multimedia/x264-devel/distinfo
+++ b/multimedia/x264-devel/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.42 2016/08/28 06:42:27 richard Exp $
+$NetBSD: distinfo,v 1.43 2016/10/02 20:34:48 maya Exp $
SHA1 (x264-snapshot-20160307-2245.tar.bz2) = 495868fbd6e99de94ee7c6823853b3fa9b3bfb7e
RMD160 (x264-snapshot-20160307-2245.tar.bz2) = 84a911b0b9925f9663ddcc27589f42c5b464f122
SHA512 (x264-snapshot-20160307-2245.tar.bz2) = f080241aad9d83388e061bb23f177944cb0d0645b7385756a85d1fbcee77242b762de7c113b6ad7d43d565ef8100ff6ceaa1f1ed20c0ecdecfe44712a2512b08
Size (x264-snapshot-20160307-2245.tar.bz2) = 727234 bytes
-SHA1 (patch-aa) = c947b8d057d653169cf62c7983e0f36780d466b4
+SHA1 (patch-aa) = 7e9080f9268c2e5838e7fa94e3c261822fccfe82
SHA1 (patch-ab) = f4be6477f75b3f7a411729997712bcaf028f88b2
SHA1 (patch-ba) = b16486f28ba5c34449e015906957062186e657af
diff --git a/multimedia/x264-devel/patches/patch-aa b/multimedia/x264-devel/patches/patch-aa
index cd06f9e53ef..b264b037a14 100644
--- a/multimedia/x264-devel/patches/patch-aa
+++ b/multimedia/x264-devel/patches/patch-aa
@@ -1,10 +1,13 @@
-$NetBSD: patch-aa,v 1.22 2016/01/24 14:34:11 ryoon Exp $
+$NetBSD: patch-aa,v 1.23 2016/10/02 20:34:48 maya Exp $
Add support for DragonFly.
Use 'amd64' as a synonym for 'x86_64'.
Avoid endian test failure for -flto.
Do not force compiler optimisations.
+If we fail an assembly test, continue as if --disable-asm
+was passed.
+
--- configure.orig 2016-01-23 21:45:04.000000000 +0000
+++ configure
@@ -578,6 +578,10 @@ case $host_os in
@@ -44,6 +47,39 @@ Do not force compiler optimisations.
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
define HAVE_ALTIVEC_H
fi
+@@ -844,8 +849,8 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
+ ASFLAGS="$ASFLAGS -c"
+ else
+ echo "You specified a pre-ARMv6 or Thumb-1 CPU in your CFLAGS."
+- echo "If you really want to run on such a CPU, configure with --disable-asm."
+- exit 1
++ echo "Disabling asm"
++ asm="no"
+ fi
+ fi
+
+@@ -854,8 +859,8 @@ if [ $asm = auto -a $ARCH = AARCH64 ] ;
+ ASFLAGS="$ASFLAGS -c"
+ else
+ echo "no NEON support, try adding -mfpu=neon to CFLAGS"
+- echo "If you really want to run on such a CPU, configure with --disable-asm."
+- exit 1
++ echo "Disabling asm"
++ asm="no"
+ fi
+ fi
+
+@@ -873,8 +878,8 @@ if [ $asm = auto -a $ARCH = MIPS ] ; the
+ define HAVE_MSA
+ else
+ echo "You specified a pre-MSA CPU in your CFLAGS."
+- echo "If you really want to run on such a CPU, configure with --disable-asm."
+- exit 1
++ echo "Disabling asm"
++ asm="no"
+ fi
+ fi
+
@@ -891,7 +896,7 @@ ASFLAGS="$ASFLAGS -DSTACK_ALIGNMENT=$sta
CPU_ENDIAN="little-endian"
if [ $compiler = GNU ]; then