pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/blender Fix build under NetBSD current (use s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2db865b2af3d
branches:  trunk
changeset: 476460:2db865b2af3d
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu Jun 10 22:04:12 2004 +0000

description:
Fix build under NetBSD current (use statvfs instead of statfs).  I'm not
adding a check in configure as I'd like to because it does not have any
AC_CHECK_FUNCS call that I could easily use to do this (the diff could
be quite big).

diffstat:

 graphics/blender/distinfo         |   3 ++-
 graphics/blender/patches/patch-ab |  28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r 750e02c39627 -r 2db865b2af3d graphics/blender/distinfo
--- a/graphics/blender/distinfo Thu Jun 10 21:39:00 2004 +0000
+++ b/graphics/blender/distinfo Thu Jun 10 22:04:12 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2004/02/17 20:35:53 jschauma Exp $
+$NetBSD: distinfo,v 1.11 2004/06/10 22:04:12 jmmv Exp $
 
 SHA1 (blender-2.32.tar.bz2) = 79a508e234d5e40287e9ebef352e3b0ee2ad443e
 Size (blender-2.32.tar.bz2) = 5661028 bytes
 SHA1 (patch-aa) = 733f4ec4e5236e4196288ead26c2680a78e2d77b
+SHA1 (patch-ab) = 46b1d28ee4702501cdc6a7b48cbd0eb2642550c8
diff -r 750e02c39627 -r 2db865b2af3d graphics/blender/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/blender/patches/patch-ab Thu Jun 10 22:04:12 2004 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.3 2004/06/10 22:04:13 jmmv Exp $
+
+--- source/blender/blenlib/intern/storage.c.orig       2003-05-29 16:09:25.000000000 +0200
++++ source/blender/blenlib/intern/storage.c
+@@ -182,7 +182,11 @@ double BLI_diskfree(char *dir)
+ 
+       return (double) (freec*bytesps*sectorspc);
+ #else
++#if defined (__NetBSD__) && __NetBSD_Version__ >= 200040000 /* 2.0D */
++      struct statvfs disk;
++#else
+       struct statfs disk;
++#endif
+       char name[100],*slash;
+ 
+ 
+@@ -193,7 +197,10 @@ double BLI_diskfree(char *dir)
+               if (slash) slash[1] = 0;
+       } else strcpy(name,"/");
+ 
+-#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) 
++#if defined (__NetBSD__) && __NetBSD_Version__ >= 200040000 /* 2.0D */
++      if (statvfs(name, &disk)) return(-1);
++#elif defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) || \
++      defined (__NetBSD__)
+       if (statfs(name, &disk)) return(-1);
+ #endif
+ #ifdef __BeOS



Home | Main Index | Thread Index | Old Index