summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefaan De Roeck <stefaan@gentoo.org>2005-09-16 21:49:31 +0000
committerStefaan De Roeck <stefaan@gentoo.org>2005-09-16 21:49:31 +0000
commit50f5916bfe6c082672d435c53ddad2fc15bcff34 (patch)
treec019cc1fdc6b90537579cb12db8abd8b158d027b /media-libs/openinventor/files
parentadding to ~amd64 (diff)
downloadgentoo-2-50f5916bfe6c082672d435c53ddad2fc15bcff34.tar.gz
gentoo-2-50f5916bfe6c082672d435c53ddad2fc15bcff34.tar.bz2
gentoo-2-50f5916bfe6c082672d435c53ddad2fc15bcff34.zip
New ebuild for SGI OpenInventor, fixes bug #31742
(Portage version: 2.0.52-r1)
Diffstat (limited to 'media-libs/openinventor/files')
-rw-r--r--media-libs/openinventor/files/digest-openinventor-2.1.5.101
-rw-r--r--media-libs/openinventor/files/freetype2-activate.patch11
-rw-r--r--media-libs/openinventor/files/freetype2-includes.patch10
-rw-r--r--media-libs/openinventor/files/gcc4-support.patch103
-rw-r--r--media-libs/openinventor/files/gentoo-paths.patch258
-rw-r--r--media-libs/openinventor/files/no-csh.patch43
-rw-r--r--media-libs/openinventor/files/support-archs.patch36
-rw-r--r--media-libs/openinventor/files/use-byacc.patch39
8 files changed, 501 insertions, 0 deletions
diff --git a/media-libs/openinventor/files/digest-openinventor-2.1.5.10 b/media-libs/openinventor/files/digest-openinventor-2.1.5.10
new file mode 100644
index 000000000000..95d1053b6fb2
--- /dev/null
+++ b/media-libs/openinventor/files/digest-openinventor-2.1.5.10
@@ -0,0 +1 @@
+MD5 82208096f1e0b111160e864e239c3a51 inventor-2.1.5-10.src.tar.gz 8282780
diff --git a/media-libs/openinventor/files/freetype2-activate.patch b/media-libs/openinventor/files/freetype2-activate.patch
new file mode 100644
index 000000000000..7ec1d2869392
--- /dev/null
+++ b/media-libs/openinventor/files/freetype2-activate.patch
@@ -0,0 +1,11 @@
+--- inventor/make/ivcommondefs.old 2005-09-14 20:41:11.000000000 +0200
++++ inventor/make/ivcommondefs 2005-09-14 20:41:30.000000000 +0200
+@@ -49,6 +49,8 @@
+
+ ifeq ($(usingLinux), 1)
+
++FREETYPE = 1
++
+ CC = /usr/bin/gcc
+ C++ = /usr/bin/g++
+ LD = /usr/bin/g++
diff --git a/media-libs/openinventor/files/freetype2-includes.patch b/media-libs/openinventor/files/freetype2-includes.patch
new file mode 100644
index 000000000000..f2d12a996291
--- /dev/null
+++ b/media-libs/openinventor/files/freetype2-includes.patch
@@ -0,0 +1,10 @@
+--- inventor/libFL/ang/flfreetype.h.orig 2001-03-24 03:34:24.000000000 +0100
++++ inventor/libFL/ang/flfreetype.h 2005-02-27 00:50:41.000000000 +0100
+@@ -1,6 +1,7 @@
+ #ifndef __flfreetype_h_
+ #define __flfreetype_h_
+
++#include <ft2build.h>
+ #include <freetype/freetype.h>
+
+ #ifndef __fl_h_
diff --git a/media-libs/openinventor/files/gcc4-support.patch b/media-libs/openinventor/files/gcc4-support.patch
new file mode 100644
index 000000000000..3f2c4af2b6dc
--- /dev/null
+++ b/media-libs/openinventor/files/gcc4-support.patch
@@ -0,0 +1,103 @@
+--- ./inventor/lib/database/include/Inventor/SoPath.h.old 2005-09-15 22:19:05.000000000 +0000
++++ ./inventor/lib/database/include/Inventor/SoPath.h 2005-09-15 22:19:08.000000000 +0000
+@@ -61,6 +61,8 @@
+ #include <Inventor/nodes/SoNode.h>
+ #include <Inventor/SoLists.h>
+
++class SoTempPath;
++
+ //////////////////////////////////////////////////////////////////////////////
+ //
+ // Class: SoPath
+diff -urN ./inventor-old/lib/database/src/so/SoOutput.c++ ./inventor/lib/database/src/so/SoOutput.c++
+--- ./inventor-old/lib/database/src/so/SoOutput.c++ 2001-09-25 00:45:35.000000000 +0000
++++ ./inventor/lib/database/src/so/SoOutput.c++ 2005-09-15 22:57:00.000000000 +0000
+@@ -1462,11 +1462,7 @@
+
+ // Generates a CC warning. Ho hum.
+ if (refDict->find((unsigned long) base, ref))
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ referenceId = (int) ((unsigned long) ref);
+-#else
+- referenceId = (int)ref;
+-#endif
+
+ return referenceId;
+ }
+diff -urN ./inventor-old/lib/database/src/so/SoType.c++ ./inventor/lib/database/src/so/SoType.c++
+--- ./inventor-old/lib/database/src/so/SoType.c++ 2003-07-11 22:40:53.000000000 +0000
++++ ./inventor/lib/database/src/so/SoType.c++ 2005-09-15 22:57:06.000000000 +0000
+@@ -331,11 +331,7 @@
+ if (b == NULL)
+ return SoType::badType();
+
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ SoType result = typeData[(int) ((unsigned long) b)].type;
+-#else
+- SoType result = typeData[(int)b].type;
+-#endif
+
+ if (result.storage.isPublic == 0) {
+ #ifdef DEBUG
+diff -urN ./inventor-old/lib/interaction/src/draggers/SoDragger.c++ ./inventor/lib/interaction/src/draggers/SoDragger.c++
+--- ./inventor-old/lib/interaction/src/draggers/SoDragger.c++ 2001-09-25 00:45:44.000000000 +0000
++++ ./inventor/lib/interaction/src/draggers/SoDragger.c++ 2005-09-15 22:58:56.000000000 +0000
+@@ -686,11 +686,7 @@
+ int indexInPath = tempPathToThis->getIndex(numFmHead+1);
+
+ int numKidsNow = children->getLength();
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ int numKidsBefore = (int) ((long) (*tempPathNumKidsHack)[numFmHead]);
+-#else
+- int numKidsBefore = (int) (*tempPathNumKidsHack)[numFmHead];
+-#endif
+
+ // To be correct, the childNode has to be the correct numbered
+ // child under the parent, and the parent should still
+diff -urN ./inventor-old/lib/nodekits/src/nodekits/SoNkCatalog.c++ ./inventor/lib/nodekits/src/nodekits/SoNkCatalog.c++
+--- ./inventor-old/lib/nodekits/src/nodekits/SoNkCatalog.c++ 2001-09-25 00:45:46.000000000 +0000
++++ ./inventor/lib/nodekits/src/nodekits/SoNkCatalog.c++ 2005-09-15 22:59:09.000000000 +0000
+@@ -336,11 +336,7 @@
+ void *castPNum;
+
+ if ( partNameDict.find( (unsigned long) theName.getString(), castPNum ) )
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ return ( (int) ((long) castPNum) ); // System long
+-#else
+- return ( (int) castPNum );
+-#endif
+ else
+ return SO_CATALOG_NAME_NOT_FOUND;
+ }
+diff -urN ./inventor-old/lib/nodekits/src/upgraders/SoV1NkCatalog.c++ ./inventor/lib/nodekits/src/upgraders/SoV1NkCatalog.c++
+--- ./inventor-old/lib/nodekits/src/upgraders/SoV1NkCatalog.c++ 2001-09-25 00:45:47.000000000 +0000
++++ ./inventor/lib/nodekits/src/upgraders/SoV1NkCatalog.c++ 2005-09-15 22:59:03.000000000 +0000
+@@ -330,11 +330,7 @@
+ void *castPNum;
+
+ if ( partNameDict.find( (unsigned long) theName.getString(), castPNum ) )
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ return ( (int) ((long) castPNum) ); // System long
+-#else
+- return ( (int) castPNum );
+-#endif
+ else
+ return SO_V1_CATALOG_NAME_NOT_FOUND;
+ }
+diff -urN ./inventor-old/libSoXt/src/SoXtRsrc.c++ ./inventor/libSoXt/src/SoXtRsrc.c++
+--- ./inventor-old/libSoXt/src/SoXtRsrc.c++ 2001-09-25 00:45:48.000000000 +0000
++++ ./inventor/libSoXt/src/SoXtRsrc.c++ 2005-09-15 22:59:19.000000000 +0000
+@@ -145,13 +145,8 @@
+ classList = new XrmQuark[listSize];
+ for (q = 0, s = len - 1;
+ s >= 0; q++, s--) {
+-#if (_MIPS_SZPTR == 64 || __ia64)
+ nameList[q] = (XrmQuark) ((long) nameplist[s]);
+ classList[q] = (XrmQuark) ((long) classplist[s]);
+-#else
+- nameList[q] = (XrmQuark) nameplist[s];
+- classList[q] = (XrmQuark) classplist[s];
+-#endif
+ }
+
+ // make the last entry the NULL sentinel
diff --git a/media-libs/openinventor/files/gentoo-paths.patch b/media-libs/openinventor/files/gentoo-paths.patch
new file mode 100644
index 000000000000..67b5c026b3d5
--- /dev/null
+++ b/media-libs/openinventor/files/gentoo-paths.patch
@@ -0,0 +1,258 @@
+diff -u -urN ./apps/demos/SceneViewer/SoSceneViewer.c++ ../inventor/apps/demos/SceneViewer/SoSceneViewer.c++
+--- ./apps/demos/SceneViewer/SoSceneViewer.c++ 2003-06-11 03:20:09.000000000 +0200
++++ ../inventor/apps/demos/SceneViewer/SoSceneViewer.c++ 2005-09-15 11:27:05.000000000 +0200
+@@ -4734,10 +4734,10 @@
+ //
+ ////////////////////////////////////////////////////////////////////////
+ {
+- if (access(IVPREFIX "/demos/Inventor/SceneViewer.about", R_OK) != 0)
++ if (access(IVPREFIX "/share/openinventor/demos/Inventor/SceneViewer.about", R_OK) != 0)
+ {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/demos/Inventor/SceneViewer.about' > /dev/null");
++ IVPREFIX "/share/openinventor/demos/Inventor/SceneViewer.about' > /dev/null");
+ return;
+ }
+
+@@ -4753,7 +4753,7 @@
+ }
+
+ sprintf(command, "acroread "
+- IVPREFIX "/demos/Inventor/SceneViewer.about &");
++ IVPREFIX "/share/openinventor/demos/Inventor/SceneViewer.about &");
+ system(command);
+ }
+
+diff -u -urN ./apps/demos/gview/DisplayGraph.c++ ../inventor/apps/demos/gview/DisplayGraph.c++
+--- ./apps/demos/gview/DisplayGraph.c++ 2002-06-01 04:22:20.000000000 +0200
++++ ../inventor/apps/demos/gview/DisplayGraph.c++ 2005-09-15 11:27:15.000000000 +0200
+@@ -67,7 +67,7 @@
+ SbDict *DisplayGraph::iconDict;
+
+ #define ICON_FILE "gviewIcons.iv"
+-#define ICON_INST_DIR IVPREFIX "/demos/data/Inventor"
++#define ICON_INST_DIR IVPREFIX "/share/openinventor/demos/data/Inventor"
+ #define ICON_ENV_VAR "IV_GRAPH_DIR"
+
+ ////////////////////////////////////////////////////////////////////////
+diff -u -urN ./apps/demos/noodle/Interface.c++ ../inventor/apps/demos/noodle/Interface.c++
+--- ./apps/demos/noodle/Interface.c++ 2002-06-01 04:22:20.000000000 +0200
++++ ../inventor/apps/demos/noodle/Interface.c++ 2005-09-15 11:30:08.000000000 +0200
+@@ -399,9 +399,9 @@
+ void
+ Interface::showAboutDialog()
+ {
+- if (access(IVPREFIX "/demos/Inventor/noodle.about", R_OK) != 0) {
++ if (access(IVPREFIX "/share/inventor/demos/Inventor/noodle.about", R_OK) != 0) {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/demos/Inventor/noodle.about' > /dev/null");
++ IVPREFIX "/share/inventor/demos/Inventor/noodle.about' > /dev/null");
+ return;
+ }
+
+@@ -415,7 +415,7 @@
+ return;
+ }
+
+- sprintf(command, "acroread " IVPREFIX "/demos/Inventor/noodle.about &");
++ sprintf(command, "acroread " IVPREFIX "/share/inventor/demos/Inventor/noodle.about &");
+ system(command);
+ }
+
+diff -u -urN ./apps/demos/qmorf/qmorf.c++ ../inventor/apps/demos/qmorf/qmorf.c++
+--- ./apps/demos/qmorf/qmorf.c++ 2002-06-01 04:22:20.000000000 +0200
++++ ../inventor/apps/demos/qmorf/qmorf.c++ 2005-09-15 11:30:55.000000000 +0200
+@@ -414,7 +414,7 @@
+ "they must contain QuadMeshes (qmorf can\n");
+ fprintf(stderr, "only morph QuadMesh nodes).\n");
+ fprintf(stderr, "The directory "
+- IVPREFIX "/share/data/models/CyberHeads "
++ IVPREFIX "/share/openinventor/data/models/CyberHeads "
+ "contains good data to morph.\n");
+
+ exit(7);
+@@ -436,10 +436,10 @@
+ void
+ showAboutDialog(Widget, XtPointer, XtPointer)
+ {
+- if (access(IVPREFIX "/demos/Inventor/qmorf.about", R_OK) != 0)
++ if (access(IVPREFIX "/share/openinventor/demos/Inventor/qmorf.about", R_OK) != 0)
+ {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/demos/Inventor/qmorf.about' > /dev/null");
++ IVPREFIX "/share/openinventor/demos/Inventor/qmorf.about' > /dev/null");
+ return;
+ }
+ char command[100];
+@@ -453,7 +453,7 @@
+ return;
+ }
+
+- sprintf(command, "acroread " IVPREFIX "/demos/Inventor/qmorf.about &");
++ sprintf(command, "acroread " IVPREFIX "/share/openinventor/demos/Inventor/qmorf.about &");
+ system(command);
+ }
+
+diff -u -urN ./apps/demos/revo/revo.c++ ../inventor/apps/demos/revo/revo.c++
+--- ./apps/demos/revo/revo.c++ 2002-06-01 04:22:21.000000000 +0200
++++ ../inventor/apps/demos/revo/revo.c++ 2005-09-15 11:31:09.000000000 +0200
+@@ -78,10 +78,10 @@
+ void
+ showAboutDialog(Widget, XtPointer, XtPointer)
+ {
+- if (access(IVPREFIX "/demos/Inventor/revo.about", R_OK) != 0)
++ if (access(IVPREFIX "/share/openinventor/demos/Inventor/revo.about", R_OK) != 0)
+ {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/demos/Inventor/revo.about' > /dev/null");
++ IVPREFIX "/share/openinventor/demos/Inventor/revo.about' > /dev/null");
+ return;
+ }
+
+@@ -96,7 +96,7 @@
+ return;
+ }
+
+- sprintf(command, "acroread " IVPREFIX "/demos/Inventor/revo.about &");
++ sprintf(command, "acroread " IVPREFIX "/share/openinventor/demos/Inventor/revo.about &");
+ system(command);
+ }
+
+diff -u -urN ./apps/demos/textomatic/textomatic.c++ ../inventor/apps/demos/textomatic/textomatic.c++
+--- ./apps/demos/textomatic/textomatic.c++ 2003-07-12 00:40:53.000000000 +0200
++++ ../inventor/apps/demos/textomatic/textomatic.c++ 2005-09-15 11:31:21.000000000 +0200
+@@ -160,10 +160,10 @@
+ void
+ showAboutDialog(Widget, XtPointer, XtPointer)
+ {
+- if (access(IVPREFIX "/demos/Inventor/textomatic.about", R_OK) != 0)
++ if (access(IVPREFIX "/share/openinventor/demos/Inventor/textomatic.about", R_OK) != 0)
+ {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/demos/Inventor/textomatic.about' > /dev/null");
++ IVPREFIX "/share/openinventor/demos/Inventor/textomatic.about' > /dev/null");
+ return;
+ }
+
+@@ -177,7 +177,7 @@
+ return;
+ }
+
+- sprintf(command, "acroread " IVPREFIX "/demos/Inventor/textomatic.about &");
++ sprintf(command, "acroread " IVPREFIX "/share/openinventor/demos/Inventor/textomatic.about &");
+ system(command);
+ }
+
+diff -u -urN ./apps/samples/widgets/MyMtlPal.c++ ../inventor/apps/samples/widgets/MyMtlPal.c++
+--- ./apps/samples/widgets/MyMtlPal.c++ 2002-06-01 04:22:21.000000000 +0200
++++ ../inventor/apps/samples/widgets/MyMtlPal.c++ 2005-09-15 11:31:33.000000000 +0200
+@@ -193,7 +193,7 @@
+ };
+
+ static char *editorTitle = "Material Palette";
+-static char *defaultDir = IVPREFIX "/share/data/materials";
++static char *defaultDir = IVPREFIX "/share/openinventor/data/materials";
+
+
+ static char *geometryBuffer = "\
+diff -u -urN ./apps/samples/widgets/MyTextureEd.c++ ../inventor/apps/samples/widgets/MyTextureEd.c++
+--- ./apps/samples/widgets/MyTextureEd.c++ 2002-06-01 04:22:21.000000000 +0200
++++ ../inventor/apps/samples/widgets/MyTextureEd.c++ 2005-09-15 11:31:43.000000000 +0200
+@@ -228,7 +228,7 @@
+
+
+ static char *customTextureDir = ".textures";
+-static char *defaultDir = IVPREFIX "/share/data/textures";
++static char *defaultDir = IVPREFIX "/share/openinventor/data/textures";
+ static char *editorTitle = "Texture Editor";
+ static char *noFileNameStr = "<empty>";
+
+diff -u -urN ./apps/tools/ivview/ivview.c++ ../inventor/apps/tools/ivview/ivview.c++
+--- ./apps/tools/ivview/ivview.c++ 2002-06-01 04:22:21.000000000 +0200
++++ ../inventor/apps/tools/ivview/ivview.c++ 2005-09-15 11:31:59.000000000 +0200
+@@ -715,9 +715,9 @@
+ static void
+ showAboutDialog()
+ {
+- if (access(IVPREFIX "/share/help/ivview/ivview.about", R_OK) != 0) {
++ if (access(IVPREFIX "/share/openinventor/help/ivview/ivview.about", R_OK) != 0) {
+ system("xmessage 'Sorry, could not find "
+- IVPREFIX "/share/help/ivview/ivview.about' > /dev/null");
++ IVPREFIX "/share/openinventor/help/ivview/ivview.about' > /dev/null");
+ return;
+ }
+
+@@ -731,7 +731,7 @@
+ return;
+ }
+
+- sprintf(command, "acroread " IVPREFIX "/share/help/ivview/ivview.about &");
++ sprintf(command, "acroread " IVPREFIX "/share/openinventor/help/ivview/ivview.about &");
+ system(command);
+ }
+
+diff -u -urN ./libFL/ang/fl.c ../inventor/libFL/ang/fl.c
+--- ./libFL/ang/fl.c 2003-07-12 00:40:53.000000000 +0200
++++ ../inventor/libFL/ang/fl.c 2005-09-15 11:32:55.000000000 +0200
+@@ -95,7 +95,7 @@
+ NULL
+ };
+
+-static char *fontPath = IVPREFIX "/share/data/fonts";
++static char *fontPath = IVPREFIX "/share/openinventor/fonts";
+ int fl_debug = FALSE;
+
+ /*
+diff -u -urN ./libSoXt/src/SoXtComponent.c++ ../inventor/libSoXt/src/SoXtComponent.c++
+--- ./libSoXt/src/SoXtComponent.c++ 2002-06-01 04:16:10.000000000 +0200
++++ ../inventor/libSoXt/src/SoXtComponent.c++ 2005-09-15 11:33:41.000000000 +0200
+@@ -622,7 +622,7 @@
+ }
+
+ // else check for the default location
+- strcpy(cardPath, IVPREFIX "/share/help/Inventor/");
++ strcpy(cardPath, IVPREFIX "/share/openinventor/help/Inventor/");
+ strcat(cardPath, cardName);
+ if ( access(cardPath, R_OK) == 0 ) {
+ strcat(pgrCmd, cardPath);
+diff -u -urN ./libSoXt/src/mtlEdit/SoXtMtlEdit.c++ ../inventor/libSoXt/src/mtlEdit/SoXtMtlEdit.c++
+--- ./libSoXt/src/mtlEdit/SoXtMtlEdit.c++ 2002-06-01 04:16:10.000000000 +0200
++++ ../inventor/libSoXt/src/mtlEdit/SoXtMtlEdit.c++ 2005-09-15 11:33:48.000000000 +0200
+@@ -156,7 +156,7 @@
+ "Material Emissive Color"
+ };
+
+-static char *mtlDir = IVPREFIX "/share/data/materials";
++static char *mtlDir = IVPREFIX "/share/openinventor/data/materials";
+
+ static char *slider_labels[] = { (char *)NULL, (char *)NULL, (char *)NULL,
+ (char *)NULL, (char *)NULL, (char *)NULL
+diff -u -urN ./libSoXt/src/mtlEdit/SoXtMtlList.c++ ../inventor/libSoXt/src/mtlEdit/SoXtMtlList.c++
+--- ./libSoXt/src/mtlEdit/SoXtMtlList.c++ 2002-06-01 04:16:10.000000000 +0200
++++ ../inventor/libSoXt/src/mtlEdit/SoXtMtlList.c++ 2005-09-15 11:33:55.000000000 +0200
+@@ -264,7 +264,7 @@
+ setClassName("SoXtMaterialList");
+ if (dir != NULL)
+ materialDir = strdup(dir);
+- else materialDir = strdup(IVPREFIX "/share/data/materials");
++ else materialDir = strdup(IVPREFIX "/share/openinventor/data/materials");
+
+ callbackList = new SoCallbackList;
+ curPalette = -1;
+Binary files ./make/.ivcommonrules.swp and ../inventor/make/.ivcommonrules.swp differ
+diff -u -urN ./make/ivcommondefs ../inventor/make/ivcommondefs
+--- ./make/ivcommondefs 2003-07-12 00:40:54.000000000 +0200
++++ ../inventor/make/ivcommondefs 2005-09-15 11:25:31.000000000 +0200
+@@ -194,9 +194,9 @@
+ IVHDRDIR = $(IVHDRTOP)/$(HDRSUBDIR)
+ IVMAN1DIR = $(IVROOT)/$(IVPREFIX)/man/man1
+ IVMAN3DIR = $(IVROOT)/$(IVPREFIX)/man/man3
+-IVHELPDIR = $(IVROOT)/$(IVPREFIX)/share/help
+-IVDATADIR = $(IVROOT)/$(IVPREFIX)/share/data/models
+-IVDEMODIR = $(IVROOT)/$(IVPREFIX)/demos
++IVHELPDIR = $(IVROOT)/$(IVPREFIX)/share/openinventor/help
++IVDATADIR = $(IVROOT)/$(IVPREFIX)/share/openinventor/data/models
++IVDEMODIR = $(IVROOT)/$(IVPREFIX)/share/openinventor/demos
+ IVDEMOBINDIR = $(IVDEMODIR)/Inventor
+ IVDEMODATADIR = $(IVDEMODIR)/data/Inventor
+
diff --git a/media-libs/openinventor/files/no-csh.patch b/media-libs/openinventor/files/no-csh.patch
new file mode 100644
index 000000000000..8135fc4435fc
--- /dev/null
+++ b/media-libs/openinventor/files/no-csh.patch
@@ -0,0 +1,43 @@
+--- inventor/doc/man/ivman/makeManDirs.old 2005-09-14 20:48:29.000000000 +0200
++++ inventor/doc/man/ivman/makeManDirs 2005-09-14 20:51:17.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/csh -f
++#!/bin/bash
+
+ #
+ # Prepares command line info to create a man page for the given class name
+@@ -6,23 +6,22 @@
+ # Usage: makeManDirs className
+ #
+
+-set nonomatch
+-set toolDir = ../../ivman
+-set className = $1
+-set treeFile = $toolDir/manTree
++toolDir=../../ivman
++className=$1
++treeFile=$toolDir/manTree
+
+ # Get the list of derived classes
+-set classes = `grep "^$className " $treeFile`
++classes=$(grep "^$className " $treeFile)
+
+ # For each class, find the directory containing the man page. Build
+ # a final list from the {className,dir} pairs.
+-set list = ()
+-foreach class ($classes)
+- if (-e */$class.ivm) then
+- set path = `echo */$class.ivm`
+- set list = ($list $path)
+- endif
+-end
++list=""
++for class in ${classes}; do
++ if [ -e */$class.ivm ]; then
++ path=$(echo */$class.ivm)
++ list="$list $path"
++ fi
++done
+
+ # Print the result
+ echo $list
diff --git a/media-libs/openinventor/files/support-archs.patch b/media-libs/openinventor/files/support-archs.patch
new file mode 100644
index 000000000000..7f9f7a16ccb1
--- /dev/null
+++ b/media-libs/openinventor/files/support-archs.patch
@@ -0,0 +1,36 @@
+--- inventor/lib/database/include/machine.h.old 2005-08-16 21:42:31.000000000 +0000
++++ inventor/lib/database/include/machine.h 2005-08-16 21:44:31.000000000 +0000
+@@ -140,15 +140,15 @@
+
+
+ /*
+- * Linux i386/ia64 machine dependent setup
++ * Linux machine dependent setup
+ */
+
+-#if __i386__ || __ia64__
++#if __i386__ || __ia64__ || __amd64__ || __alpha__
+
+ #define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN
+ #define MACHINE_FLOAT_FORMAT DGL_NON_IEEE
+
+-#endif /* __i386__ || __ia64__ */
++#endif /* __i386__ || __ia64__ || __alpha__ */
+
+
+ /*
+@@ -321,12 +321,12 @@
+ */
+
+ #if MACHINE_FLOAT_FORMAT == DGL_NON_IEEE
+-#if __i386__ || __ia64__
++#if __i386__ || __ia64__ || __amd64__ || __alpha__
+ void mem_hton_float(float *t, float *f);
+ void mem_ntoh_float(float *t, float *f);
+ void mem_hton_double(double *t, double *f);
+ void mem_ntoh_double(double *t, double *f);
+-#endif /* __i386__ || __ia64__ */
++#endif /* __i386__ || __ia64__ || __amd64__ || __alpha__ */
+ #define DGL_HTON_FLOAT(t,f) mem_hton_float(&t,&f)
+ #define DGL_NTOH_FLOAT(t,f) mem_ntoh_float(&t,&f)
+ #define DGL_HTON_DOUBLE(t,f) mem_hton_double(&t,&f)
diff --git a/media-libs/openinventor/files/use-byacc.patch b/media-libs/openinventor/files/use-byacc.patch
new file mode 100644
index 000000000000..be2152dcd360
--- /dev/null
+++ b/media-libs/openinventor/files/use-byacc.patch
@@ -0,0 +1,39 @@
+diff -u -ur inventor/doc/man/man1/GNUmakefile /var/tmp/portage/openinventor-2.1.5.10/work/inventor/doc/man/man1/GNUmakefile
+--- inventor/doc/man/man1/GNUmakefile 2000-09-18 11:11:13.000000000 +0200
++++ /var/tmp/portage/openinventor-2.1.5.10/work/inventor/doc/man/man1/GNUmakefile 2005-09-14 15:35:20.000000000 +0200
+@@ -11,6 +11,8 @@
+ ivinfo.1 \
+ ivview.1
+
+-all install: install_man1
++all:
++
++install: install_man1
+
+ include $(IVCOMMONRULES)
+diff -u -ur inventor/doc/man/man3/GNUmakefile /var/tmp/portage/openinventor-2.1.5.10/work/inventor/doc/man/man3/GNUmakefile
+--- inventor/doc/man/man3/GNUmakefile 2000-09-18 11:11:13.000000000 +0200
++++ /var/tmp/portage/openinventor-2.1.5.10/work/inventor/doc/man/man3/GNUmakefile 2005-09-14 15:35:37.000000000 +0200
+@@ -3,7 +3,9 @@
+
+ SUBDIRS = ivm
+
+-all install:
++all:
++
++install:
+ $(SUBDIRS_MAKERULE)
+
+ COMMONPREF = xxx
+diff -u -ur inventor/make/commondefs /var/tmp/portage/openinventor-2.1.5.10/work/inventor/make/commondefs
+--- inventor/make/commondefs 2001-06-16 01:27:00.000000000 +0200
++++ /var/tmp/portage/openinventor-2.1.5.10/work/inventor/make/commondefs 2005-09-14 15:27:17.000000000 +0200
+@@ -65,7 +65,7 @@
+ STRIP = $(TOOLROOT)/usr/bin/strip
+ TAG = $(TOOLROOT)/usr/sbin/tag
+ TLINK = $(TOOLROOT)/usr/sbin/tlink
+-YACC = $(TOOLROOTSAFE) $(TOOLROOT)/usr/bin/yacc
++YACC = $(TOOLROOTSAFE) $(TOOLROOT)/usr/bin/byacc
+ ifeq ($(usingIrix), 1)
+ YACC += -P $(ROOT)/usr/lib/yaccpar
+ endif