From 23b9d0352ad6b9606aae84e46aa1cee00be63b60 Mon Sep 17 00:00:00 2001 From: pascal Date: Mon, 26 Nov 2012 15:02:40 +0000 Subject: [PATCH] Fix copy-paste error breaking the build on powerpc. ok aja@ --- graphics/blender/Makefile | 3 +-- ...patch-source_blender_avi_intern_avi_endian_c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 graphics/blender/patches/patch-source_blender_avi_intern_avi_endian_c diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index 2cfd3984d87..50e21ddfafd 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -1,8 +1,7 @@ -# $OpenBSD: Makefile,v 1.47 2012/11/24 08:36:26 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.48 2012/11/26 15:02:40 pascal Exp $ COMMENT = 3D creation software BROKEN-sparc64 = error: cast from 'ccl::uchar*' to 'CUdeviceptr' loses precision -BROKEN-powerpc = avi_endian.c:54: error: 'val' undeclared DISTNAME = blender-2.64a diff --git a/graphics/blender/patches/patch-source_blender_avi_intern_avi_endian_c b/graphics/blender/patches/patch-source_blender_avi_intern_avi_endian_c new file mode 100644 index 00000000000..ec6efea93e2 --- /dev/null +++ b/graphics/blender/patches/patch-source_blender_avi_intern_avi_endian_c @@ -0,0 +1,17 @@ +$OpenBSD: patch-source_blender_avi_intern_avi_endian_c,v 1.1 2012/11/26 15:02:40 pascal Exp $ + +obvious copy-pasto + +--- source/blender/avi/intern/avi_endian.c.orig Tue Oct 9 20:38:28 2012 ++++ source/blender/avi/intern/avi_endian.c Mon Nov 26 12:24:45 2012 +@@ -51,8 +51,8 @@ + /* copied from BLI_endian_switch_inline.h */ + static void invert(int *num) + { +- int tval = *val; +- *val = ((tval >> 24)) | ++ int tval = *num; ++ *num = ((tval >> 24)) | + ((tval << 8) & 0x00ff0000) | + ((tval >> 8) & 0x0000ff00) | + ((tval << 24));