html and postscript viewer
Mark Brethen
mark.brethen at gmail.com
Wed Mar 30 18:24:53 PDT 2016
A header file specifies these parameters:
/* html browser, change if necessary */
/* postscript viewer, change if necessary */
#ifdef MTU
#define BROWSER {"firefox"}
#define PSVIEWER {"gv"}
#else
/* #define BROWSER {"netscape"} */
/* #define BROWSER {"mozilla"} */
#define BROWSER {"firefox"}
/* #define PSVIEWER {"ghostview"} */
#define PSVIEWER {"gv”}
#endif
And also the location of the help files:
/* default location of the help files, please insert the actual one */
#ifdef MTU
#ifdef DEVEL
#define HELPFILE {"/yaprod/yae55/Linux_x86_64/bin/cgx_doc/cgx.h$
"/yaprod/yae55/Linux_x86_64/bin/ccx_doc/ccx.html"}
#else
#define HELPFILE {"/yaprod/cae/application/CalculiX/doc/cgx_2.1$
"/yaprod/cae/application/CalculiX/doc/ccx_2.10/cc$
#endif
#elif defined AFLIB
#define HELPFILE {"/usr/local/CalculiX/cgx_2.10/doc/cgx/cgx.html"$
"/usr/local/CalculiX/ccx_2.10/doc/ccx/ccx.html",\
"/usr/local/CalculiX/cgx_2.10/doc/aflib/aflib.pdf"}
#else
#define HELPFILE {"/usr/local/CalculiX/cgx_2.10/doc/cgx/cgx.html"$
"/usr/local/CalculiX/ccx_2.10/doc/ccx/ccx.html"}
#endif
I’ll use /opt/local/share/doc/${name} for the default location.
> On Mar 30, 2016, at 8:14 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>
> On Mar 30, 2016, at 8:11 PM, Mark Brethen wrote:
>
>> Culculix CGX is setting a default html (firefox) and postscript (gv) viewer. For mac users, they recommend changing ‘gv’ to ‘preview’ but give no recommendation for a browser. I thought I’d ask here whether to keep it firefox or change it to something else? Safari?
>
> OS X lets the user specify their preferred browser. This setting can be changed in Safari's preferences window. You should respect that preference.
>
> How does Culculix CGX invoke the web browser? If it does so by running a command (such as "firefox" on other platforms), then you can use my openbrowser port and the openbrowser command it provides to accomplish that.
>
> If they run a command to invoke a the PostScript viewer, then you would probably use "open -a Preview.app" to open Preview.
>
More information about the macports-dev
mailing list