diff options
Diffstat (limited to 'graphics/inventor/files/patch-Interface.c++')
| -rw-r--r-- | graphics/inventor/files/patch-Interface.c++ | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/graphics/inventor/files/patch-Interface.c++ b/graphics/inventor/files/patch-Interface.c++ new file mode 100644 index 000000000000..a8a0ad30745d --- /dev/null +++ b/graphics/inventor/files/patch-Interface.c++ @@ -0,0 +1,35 @@ +--- apps/demos/noodle/Interface.c++~ Sat Jun 1 11:22:20 2002 ++++ apps/demos/noodle/Interface.c++ Sun Aug 3 14:50:36 2003 +@@ -67,6 +67,12 @@ + #include "NoodleTextureGizmo.h" + #include "NoodleSurfaceGizmo.h" + ++#ifdef __FreeBSD__ ++#define PDF_READER "xpdf" ++#else ++#define PDF_READER "acroread" ++#endif ++ + #define SCREEN(w) XScreenNumberOfScreen(XtScreen(w)) + + extern SoNode *createProfileGraph( Widget, GeneralizedCylinder *); +@@ -406,16 +412,16 @@ + } + + char command[100]; +- sprintf(command, "which acroread > /dev/null"); ++ sprintf(command, "which " PDF_READER " > /dev/null"); + + int err = system(command); + if (err) { +- system("xmessage 'You must install acroread" ++ system("xmessage 'You must install " PDF_READER + " for this function to work' > /dev/null"); + return; + } + +- sprintf(command, "acroread " IVPREFIX "/demos/Inventor/noodle.about &"); ++ sprintf(command, PDF_READER " " IVPREFIX "/demos/Inventor/noodle.about &"); + system(command); + } + |
