summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreinoud <reinoud@pkgsrc.org>2005-03-04 16:04:59 +0000
committerreinoud <reinoud@pkgsrc.org>2005-03-04 16:04:59 +0000
commitd2f8aae266e2947d9052105476977c8d0c3c78fc (patch)
tree288fcc0b49189a5fcf6cd7638367a8b66cde4329
parent86f30cf5337b766c32b5bd498b4dc6cfbf662d75 (diff)
downloadpkgsrc-d2f8aae266e2947d9052105476977c8d0c3c78fc.tar.gz
Update blender package to include all scripts distributed with it. Also
providing an convenience script that links default scripts directory to the homedir. This due to oddities in the blender program too far reaching to easily patch.
-rw-r--r--doc/CHANGES3
-rw-r--r--graphics/blender/MESSAGE25
-rw-r--r--graphics/blender/Makefile14
-rw-r--r--graphics/blender/PLIST70
-rw-r--r--graphics/blender/files/blender9
5 files changed, 117 insertions, 4 deletions
diff --git a/doc/CHANGES b/doc/CHANGES
index 0b5b194470e..3c5bb40652d 100644
--- a/doc/CHANGES
+++ b/doc/CHANGES
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.9419 2005/03/04 15:43:54 uebayasi Exp $
+$NetBSD: CHANGES,v 1.9420 2005/03/04 16:04:59 reinoud Exp $
Changes to the packages collection and infrastructure in 2005:
@@ -1272,3 +1272,4 @@ Changes to the packages collection and infrastructure in 2005:
Updated p5-Curses to 1.08b [wiz 2005-03-04]
Updated mew to 4.2 [uebayasi 2005-03-04]
Updated wol to 0.7.1 [uebayasi 2005-03-04]
+ Updated blender to 2.63nb1 [reinoud 2005-03-04]
diff --git a/graphics/blender/MESSAGE b/graphics/blender/MESSAGE
new file mode 100644
index 00000000000..4a9b2b289b6
--- /dev/null
+++ b/graphics/blender/MESSAGE
@@ -0,0 +1,25 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2005/03/04 16:04:59 reinoud Exp $
+
+Due to oddities in the blender package, running `blender' will soft-link
+the global blender directory to your home directory as ~/.blender to run
+properly with all scripts attached.
+
+Customisation can be done individually by copying the directory ~/.blender
+points to to your own homedirectory :
+ rm ~/.blender
+ cp -R ${PREFIX}/share/blender ~/.blender
+
+and customise/add your own stuff like scripts etc. in it.
+
+To revert to `factory' settings and site-setup files, just remove the
+~/.blender directory/link and the script will add the softlink again.
+
+Note that blender will create a ~/.B.blend file that serves as the empty or
+startup file with all settings in it. A file called ~/.Blog will hold the
+last file edited with blender.
+
+Executing ${PREFIX}/bin/blender-bin will bypass the convenience script
+${PREFIX}/bin/blender
+
+===========================================================================
diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile
index bd851229c6b..f90c862519e 100644
--- a/graphics/blender/Makefile
+++ b/graphics/blender/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2005/02/26 20:34:43 reinoud Exp $
+# $NetBSD: Makefile,v 1.39 2005/03/04 16:04:59 reinoud Exp $
#
DISTNAME= blender-2.36
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.umn.edu/pub/blender.org/source/ \
http://download.blender.org/source/
@@ -37,12 +38,21 @@ do-build:
${PREFIX}/bin/scons -C ${WRKSRC} prefix=${PREFIX}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/blender ${PREFIX}/bin
+ ${CP} -f ${WRKSRC}/blender ${WRKSRC}/blender-bin
+ ${SED} -e "s|__PREFIX__|${PREFIX}|g" files/blender > ${TMP}/blender
+ ${CHMOD} +x ${TMP}/blender
+ ${INSTALL_PROGRAM} ${WRKSRC}/blender-bin ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts
+ ${INSTALL_DATA} ${WRKSRC}/release/scripts/* ${PREFIX}/share/blender/scripts
+ ${INSTALL} ${TMP}/blender ${PREFIX}/bin
.if defined(BLENDER_INSTALL_DOC)
DEPENDS+= blender-doc:../../graphics/blender-doc
.endif
+#
+# disabled these options; they ought to be re-instantiated one day
+#
.if 0
.if defined(BLENDER_USE_OGG)
CONFIGURE_ARGS+= --with-ogg=${PREFIX}
diff --git a/graphics/blender/PLIST b/graphics/blender/PLIST
index 27711b030ee..971652c6af6 100644
--- a/graphics/blender/PLIST
+++ b/graphics/blender/PLIST
@@ -1,2 +1,70 @@
-@comment $NetBSD: PLIST,v 1.2 2003/07/31 18:40:58 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.3 2005/03/04 16:04:59 reinoud Exp $
bin/blender
+bin/blender-bin
+share/blender/scripts/Apply_def.py
+share/blender/scripts/Axiscopy.py
+share/blender/scripts/DirectX8Exporter.py
+share/blender/scripts/DirectXExporter.py
+share/blender/scripts/UVpaint05.py
+share/blender/scripts/ac3d_export.py
+share/blender/scripts/ac3d_import.py
+share/blender/scripts/batch_name_edit.py
+share/blender/scripts/bevel_center.py
+share/blender/scripts/blender2cal3d.py
+share/blender/scripts/bvh_export.py
+share/blender/scripts/bvh_import.py
+share/blender/scripts/clean_mesh.py
+share/blender/scripts/disp_paint.py
+share/blender/scripts/doc_browser.py
+share/blender/scripts/fixfromarmature.py
+share/blender/scripts/help_browser.py
+share/blender/scripts/help_getting_started.py
+share/blender/scripts/help_manual.py
+share/blender/scripts/help_py_reference.py
+share/blender/scripts/help_release_notes.py
+share/blender/scripts/help_tutorials.py
+share/blender/scripts/help_web_blender.py
+share/blender/scripts/help_web_devcomm.py
+share/blender/scripts/help_web_eshop.py
+share/blender/scripts/help_web_usercomm.py
+share/blender/scripts/hotkeys.py
+share/blender/scripts/kloputils.py
+share/blender/scripts/knife.py
+share/blender/scripts/lightwave_export.py
+share/blender/scripts/lightwave_import.py
+share/blender/scripts/mod_ai2obj.py
+share/blender/scripts/mod_blender.py
+share/blender/scripts/mod_eps2obj.py
+share/blender/scripts/mod_gimp2obj.py
+share/blender/scripts/mod_meshtools.py
+share/blender/scripts/mod_svg2obj.py
+share/blender/scripts/nendo_export.py
+share/blender/scripts/nendo_import.py
+share/blender/scripts/obdatacopier.py
+share/blender/scripts/obj_export.py
+share/blender/scripts/obj_import.py
+share/blender/scripts/off_export.py
+share/blender/scripts/off_import.py
+share/blender/scripts/paths_import.py
+share/blender/scripts/radiosity_export.py
+share/blender/scripts/radiosity_import.py
+share/blender/scripts/raw_export.py
+share/blender/scripts/raw_import.py
+share/blender/scripts/renameobjectbyblock.py
+share/blender/scripts/rvk1_torvk2.py
+share/blender/scripts/save_theme.py
+share/blender/scripts/sel_same.py
+share/blender/scripts/skin.py
+share/blender/scripts/slp_import.py
+share/blender/scripts/sysinfo.py
+share/blender/scripts/tex2uvbaker.py
+share/blender/scripts/truespace_export.py
+share/blender/scripts/truespace_import.py
+share/blender/scripts/unweld044.py
+share/blender/scripts/uv_export.py
+share/blender/scripts/videoscape_export.py
+share/blender/scripts/wings_export.py
+share/blender/scripts/wings_import.py
+share/blender/scripts/wrl2export.py
+@dirrm share/blender/scripts
+@dirrm share/blender
diff --git a/graphics/blender/files/blender b/graphics/blender/files/blender
new file mode 100644
index 00000000000..594cba24df3
--- /dev/null
+++ b/graphics/blender/files/blender
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $NetBSD: blender,v 1.1 2005/03/04 16:04:59 reinoud Exp $
+
+if ! [ -d ${HOME}/.blender ]; then
+ echo Softlinking ${HOME}/.blender to point to global __PREFIX__/share/blender settings.
+ ln -s __PREFIX__/share/blender ${HOME}/.blender
+fi
+
+exec __PREFIX__/bin/blender-bin "$@"