diff options
author | adam <adam@pkgsrc.org> | 2004-05-03 06:45:28 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2004-05-03 06:45:28 +0000 |
commit | 7536b1c25459d89c28763babb924687e5a374dde (patch) | |
tree | b2b2c8bf4eb70442c0c1a14d2d80d39eaf55b6d5 /graphics/gimp | |
parent | 5dadfd8e2e60d4c4837bd114054ead6069f57fd2 (diff) | |
download | pkgsrc-7536b1c25459d89c28763babb924687e5a374dde.tar.gz |
Fix building and enable AltiVec support on Darwin/MacOSX
Diffstat (limited to 'graphics/gimp')
-rw-r--r-- | graphics/gimp/distinfo | 4 | ||||
-rw-r--r-- | graphics/gimp/patches/patch-ac | 31 | ||||
-rw-r--r-- | graphics/gimp/patches/patch-ad | 13 |
3 files changed, 47 insertions, 1 deletions
diff --git a/graphics/gimp/distinfo b/graphics/gimp/distinfo index 8bde542bc18..959bd15df68 100644 --- a/graphics/gimp/distinfo +++ b/graphics/gimp/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.9 2004/04/15 08:37:38 adam Exp $ +$NetBSD: distinfo,v 1.10 2004/05/03 06:45:28 adam Exp $ SHA1 (gimp-2.0.1.tar.bz2) = 001b76ab22367a9245f1c3be3fd7c55240b1edbf Size (gimp-2.0.1.tar.bz2) = 13467677 bytes SHA1 (patch-aa) = b233a944fa69481685770aa4d5b24a07f127afcf SHA1 (patch-ab) = 1b50ef4dfebb70a2e06a97decaa135526767cbcb +SHA1 (patch-ac) = a45e93e27d0078c5120eed5017de385ce7f29175 +SHA1 (patch-ad) = 39eadbc4822fedf09d962ab500afa9d735db92a4 diff --git a/graphics/gimp/patches/patch-ac b/graphics/gimp/patches/patch-ac new file mode 100644 index 00000000000..8449fef6e76 --- /dev/null +++ b/graphics/gimp/patches/patch-ac @@ -0,0 +1,31 @@ +$NetBSD: patch-ac,v 1.10 2004/05/03 06:45:28 adam Exp $ + +--- configure.orig Sun May 2 21:28:07 2004 ++++ configure +@@ -27221,8 +27221,16 @@ if test "x$enable_altivec" = xyes; then + echo "$as_me:$LINENO: checking whether we can compile Altivec code" >&5 + echo $ECHO_N "checking whether we can compile Altivec code... $ECHO_C" >&6 + ++ gimp_save_CFLAGS=$CFLAGS ++ case `uname` in ++ Darwin) ++ CFLAGS="$CFLAGS -faltivec" ++ ;; ++ *) ++ ;; ++ esac + cat >conftest.$ac_ext <<_ACEOF +-asm ("vand %v0, %v0, %v0"); ++asm ("vand v0, v0, v0"); + _ACEOF + rm -f conftest.$ac_objext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 +@@ -27262,7 +27270,7 @@ enable_altivec=no + echo "${ECHO_T}no" >&6 + { echo "$as_me:$LINENO: WARNING: The assembler does not support the Altivec command set." >&5 + echo "$as_me: WARNING: The assembler does not support the Altivec command set." >&2;} +- ++ CFLAGS=$gimp_save_CFLAGS + fi + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + diff --git a/graphics/gimp/patches/patch-ad b/graphics/gimp/patches/patch-ad new file mode 100644 index 00000000000..c88da0e2929 --- /dev/null +++ b/graphics/gimp/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.3 2004/05/03 06:45:28 adam Exp $ + +--- app/base/cpu-accel.c.orig Sun May 2 23:15:36 2004 ++++ app/base/cpu-accel.c +@@ -366,7 +366,7 @@ arch_accel (void) + canjump = 1; + + asm volatile ("mtspr 256, %0\n\t" +- "vand %%v0, %%v0, %%v0" ++ "vand v0, v0, v0" + : + : "r" (-1)); + |