summaryrefslogtreecommitdiff
path: root/graphics/inventor/files/patch-SoSceneViewer.c++
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-08-03 06:56:12 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-08-03 06:56:12 +0000
commit630eb2d3afb2f27b5ca5d0b25af7e915c66f7b8a (patch)
tree15b71419c82ce8d48c3fd14f2d0ac69bd4e23824 /graphics/inventor/files/patch-SoSceneViewer.c++
parentUpdate to 2.1.4 (diff)
SGI's Open Inventor (TM)
an object-oriented 3D toolkit offering a comprehensive solution to interactive graphics programming problems. PR: 46731 Submitted by: Christian Gusenbauer <c47g@gmx.at>
Diffstat (limited to 'graphics/inventor/files/patch-SoSceneViewer.c++')
-rw-r--r--graphics/inventor/files/patch-SoSceneViewer.c++53
1 files changed, 53 insertions, 0 deletions
diff --git a/graphics/inventor/files/patch-SoSceneViewer.c++ b/graphics/inventor/files/patch-SoSceneViewer.c++
new file mode 100644
index 000000000000..2612ff041e76
--- /dev/null
+++ b/graphics/inventor/files/patch-SoSceneViewer.c++
@@ -0,0 +1,53 @@
+*** apps/demos/SceneViewer/SoSceneViewer.c++.orig Fri Jan 3 09:59:15 2003
+--- apps/demos/SceneViewer/SoSceneViewer.c++ Fri Jan 3 10:01:02 2003
+***************
+*** 141,146 ****
+--- 141,151 ----
+ #include <assert.h>
+ #endif
+
++ #ifdef __FreeBSD__
++ #define PDF_READER "xpdf"
++ #else
++ #define PDF_READER "acroread"
++ #endif
+
+ //
+ // Macros and constants
+***************
+*** 4739,4755 ****
+ }
+
+ char command[100];
+! sprintf(command, "which acroread > /dev/null");
+
+ int err = system(command);
+ if (err)
+ {
+! system("xmessage 'You must install acroread"
+ " for this function to work' > /dev/null");
+ return;
+ }
+
+! sprintf(command, "acroread "
+ IVPREFIX "/demos/Inventor/SceneViewer.about &");
+ system(command);
+ }
+--- 4744,4760 ----
+ }
+
+ char command[100];
+! sprintf(command, "which " PDF_READER " > /dev/null");
+
+ int err = system(command);
+ if (err)
+ {
+! system("xmessage 'You must install " PDF_READER
+ " for this function to work' > /dev/null");
+ return;
+ }
+
+! sprintf(command, PDF_READER " "
+ IVPREFIX "/demos/Inventor/SceneViewer.about &");
+ system(command);
+ }