[Bf-docboard] Blender 2.27 on NetBSD

Jan Schaumann bf-docboard@blender.org
Wed, 28 May 2003 12:59:31 -0400


--JYK4vJDZwFMowpUq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello,

I have just imported Blender 2.27 into NetBSD's Packages Collection[1].
This may be of interest to you for several reasons.  On the one hand, it
shows that blender compiles and installs without a problem under NetBSD,
thus offering a large number of platforms.  On the other hand, by using
the Packages Collection (or pkgsrc), users on other platforms also have
a terribly easy way of compiling and installing the software, as pkgsrc
can be used on a variety of platforms.

Attached please find the two patches that I had to apply to make the
sources compile under NetBSD -- actually, only one is required, the
other one is a patch to the configure script.

I've created and uploaded binary packages[2] of Blender 2.27 -- it would be
nice if you could add links from your website.

As for the HTML documentation, you might want to consider adding a
paragraph for the "Installing Blender" section:


,----[ Downloading and installing the binary distribution ]
| NetBSD
|
| Quick Install
|
| Determine the correct URL for your platform (see [2]).  Then, as root,
| issue the command 'pkg_add <URL>'.
|
| In-depth Instructions
|
| The NetBSD Project provides binary packages for a large number of
| platforms.  You will need to determine the correct location for your
| platform.  For example, if you are using NetBSD 1.6 on an i386 PC, the
| correct binary package would be
| ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6/i386/graphics/blender-2.27.tgz
|
| You may choose to download that file by hand and then issue the command
| 'pkg_add blender-2.27.tgz' or simply use 'pkg_add <URL>'.  Note that if
| you do not have all the dependencies installed, the latter is the better
| option as that way the required packages are installed at the same time.
|
| Please see [3] for details.
|
| Should there be no binary package for your platform, please follow the
| easy instructions to build blender from source.
|
`----


,----[ Building Blender from the sources ]
| NetBSD (and other platforms using pkgsrc)
|
| Quick Install
|
| cd /usr/pkgsrc/graphics/blender
| make install
|
| In-depth Instructions
|
| NetBSD's Packages Collection provides for easy installation from source
| on a multitude of platforms (NetBSD, Linux, OpenBSD, FreeBSD, Darwin,
| Irix).  You should be able to compile and install Blender easily by
| simply changing into the directory /usr/pkgsrc/graphics/blender and
| issuing the command 'make install'.  This will automatically download
| the sources, verify their integrity, download and install all necessary
| dependencies and build and install Blender.  Please see [1] for details.
|
| Note that there are a few flags you can set to compile in support for
| additional packages.  Search /usr/pkgsrc/mk/bsd.pkg.defaults.mk for
| "BLENDER" variables and set them according to your preference in
| /etc/mk.conf
|
| If you experience problems building the package, please use send-pr(1)
| on your NetBSD system or submit a proble report via [4].
|
`----

-Jan

[1] http://www.netbsd.org/Documentation/software/packages.html
    http://www.netbsd.org/Documentation/pkgsrc/

[2] Binary package for NetBSD/i386:

ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6.1/i386/graphics/blender-2.27.tgz
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6/i386/graphics/blender-2.27.tgz

    Binary package for NetBSD/macppc:

ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6.1/macppc/graphics/blender-2.27.tgz
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6/macppc/graphics/blender-2.27.tgz

    Binary package for Linux/i386 using pkgsrc:

ftp://ftp.netbsd.org/pub/NetBSD/misc/jschauma/pkgsrc/Linux/i386/graphics/blender-2.27.tgz

[3] http://man.netbsd.org/cgi-bin/man-cgi?pkg_add+1+NetBSD-current

[4] http://www.netbsd.org/cgi-bin/sendpr.cgi?gndb=netbsd

-- 
http://www.netbsd.org -
         Multiarchitecture OS, no hype required.

--JYK4vJDZwFMowpUq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-aa

$NetBSD: patch-aa,v 1.1 2003/05/28 15:51:40 jschauma Exp $

--- configure.orig	Tue May 27 14:15:47 2003
+++ configure	Tue May 27 14:16:16 2003
@@ -11103,7 +11103,7 @@
 
 
 #Find out what path to use for python.
-python_sysprefix=`echo "import sys; print sys.prefix" | python -`
+python_sysprefix=`echo "import sys; print sys.prefix" | ${PYTHON} -`
 
 if test x"$enable_openal" = x"yes"; then
 

--JYK4vJDZwFMowpUq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ab

$NetBSD: patch-ab,v 1.1 2003/05/28 15:51:40 jschauma Exp $

--- source/blender/blenlib/intern/storage.c.orig	Tue May 27 14:34:50 2003
+++ source/blender/blenlib/intern/storage.c	Tue May 27 14:35:08 2003
@@ -60,7 +60,7 @@
 #include <sys/statfs.h>
 #endif
 
-#if defined (__FreeBSD__) || defined (__OpenBSD__) 
+#if defined (__FreeBSD__) || defined (__OpenBSD__)  || defined (__NetBSD__)
 #include <sys/param.h>
 #include <sys/mount.h>
 #endif

--JYK4vJDZwFMowpUq--