mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
630eb2d3af
an object-oriented 3D toolkit offering a comprehensive solution to interactive graphics programming problems. PR: 46731 Submitted by: Christian Gusenbauer <c47g@gmx.at>
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
--- 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);
|
|
}
|
|
|