From 78ff1db63340c0380d64cb8ce0ec422580aeebc4 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sun, 25 Apr 2010 18:46:44 +0000 Subject: [PATCH] Fix build on powerpc. PR: ports/146042 Submitted by: Andreas Tobler --- graphics/libvisual/Makefile | 2 -- graphics/libvisual/files/patch-libvisual-lv_cpu.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 graphics/libvisual/files/patch-libvisual-lv_cpu.c diff --git a/graphics/libvisual/Makefile b/graphics/libvisual/Makefile index dec30095b890..5c6972941e69 100644 --- a/graphics/libvisual/Makefile +++ b/graphics/libvisual/Makefile @@ -27,8 +27,6 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ .if ${ARCH} == "i386" || ${ARCH} == "amd64" CFLAGS+= -mmmx -.elif ${ARCH} == "powerpc" -BROKEN= Does not compile on powerpc .endif post-patch: diff --git a/graphics/libvisual/files/patch-libvisual-lv_cpu.c b/graphics/libvisual/files/patch-libvisual-lv_cpu.c new file mode 100644 index 000000000000..b81f188e1bf3 --- /dev/null +++ b/graphics/libvisual/files/patch-libvisual-lv_cpu.c @@ -0,0 +1,10 @@ +--- libvisual/lv_cpu.c.orig 2010-04-25 17:13:26.000000000 +0200 ++++ libvisual/lv_cpu.c 2010-04-25 17:11:29.000000000 +0200 +@@ -423,7 +423,7 @@ + #endif + #endif /* VISUAL_ARCH_X86 */ + +-#if VISUAL_ARCH_POWERPC ++#if defined(VISUAL_ARCH_POWERPC) + check_os_altivec_support (); + #endif /* VISUAL_ARCH_POWERPC */