Re: html and postscript viewer

2016-04-02 Thread Mark Brethen
After reviewing: https://trac.macports.org/wiki/PortfileRecipes#compiler I tried: compiler.blacklist *clang* *llvm-gcc-4.2 compiler.whitelist macports-gcc-4.9 pre-build { build.args CC=${configure.cc} \ CXX=${configure.cxx} } This builds with

Re: html and postscript viewer

2016-04-02 Thread Mark Brethen
It fails in a similar fashion, which is why I don’t think my first attempt actually used gcc 4.9. What are the commands to set a default compiler? > On Apr 2, 2016, at 4:45 AM, Joshua Root wrote: > > Sounds like they could use some help with their code. If you want to make

Re: html and postscript viewer

2016-04-02 Thread Joshua Root
BTW, the author of that guide also seems to be under the mistaken impression that Xcode includes GCC 5.1... - Josh On 2016-4-2 20:45 , Joshua Root wrote: Sounds like they could use some help with their code. If you want to make your own version of a function like abs that behaves differently

Re: html and postscript viewer

2016-04-02 Thread Joshua Root
Sounds like they could use some help with their code. If you want to make your own version of a function like abs that behaves differently to the stdlib one, defining a macro with the same name is not the way to go about it. It's likely to misbehave regardless of which compiler you use, just

Re: html and postscript viewer

2016-04-02 Thread Mark Brethen
From their installation guide: For the compilation of cgx, therefore, the unmodified GCC 4.9 is required because the modified (by Apple) GCC for several reasons is not suitable for the compilation of cgx … The modified GCC includes the individual compilers: gcc (GNU c compiler), g++ and clang.

Re: html and postscript viewer

2016-04-01 Thread Ryan Schmidt
> On Apr 1, 2016, at 23:03, Mark Brethen wrote: > > I’ve run into a snag building calculix. glut and libSNL are libraries that > calculix uses. I set > > "compiler.whitelist macports-gcc-4.9” > > per the developers instructions. Why? We usually do not want to

Re: html and postscript viewer

2016-04-01 Thread Ryan Schmidt
On Apr 1, 2016, at 19:03, Mark Brethen wrote: > > Would someone look at the patch file and comment if okay or needs changes. You should remove -L/usr/X11R6/lib; we don't want to get any libraries from there. We want to use the versions installed in ${prefix} by

Re: html and postscript viewer

2016-04-01 Thread Mark Brethen
Would someone look at the patch file and comment if okay or needs changes. Thanks patch-cgx-build.diff Description: Binary data > On Mar 30, 2016, at 9:39 PM, Ryan Schmidt wrote: > > On Mar 30, 2016, at 21:17, Mark Brethen wrote: >> >> I suppose these launch

Re: html and postscript viewer

2016-03-31 Thread Mark Brethen
That's even better. Thanks! Sent from my iPhone > On Mar 30, 2016, at 9:39 PM, Ryan Schmidt wrote: > >> On Mar 30, 2016, at 21:17, Mark Brethen wrote: >> >> I suppose these launch scripts will need to be installed in ${prefix}/bin. > > No need for custom scripts. Set

Re: html and postscript viewer

2016-03-30 Thread Ryan Schmidt
On Mar 30, 2016, at 21:17, Mark Brethen wrote: > > I suppose these launch scripts will need to be installed in ${prefix}/bin. No need for custom scripts. Set PSVIEWER to "open" (part of OS X) and BROWSER to "openbrowser" (and add a dependency on my openbrowser port).

Re: html and postscript viewer

2016-03-30 Thread Mark Brethen
I suppose these launch scripts will need to be installed in ${prefix}/bin. > On Mar 30, 2016, at 8:59 PM, Brandon Allbery wrote: > > On Wed, Mar 30, 2016 at 9:45 PM, Mark Brethen > wrote: > According to the

Re: html and postscript viewer

2016-03-30 Thread Brandon Allbery
On Wed, Mar 30, 2016 at 9:45 PM, Mark Brethen wrote: > According to the documentation these parameters are actually the names of > shell scripts that CGX runs to open the viewers. For example, the > instruction for the html viewer are as follows: This is because Linux's

Re: html and postscript viewer

2016-03-30 Thread Kevin Walzer
On 3/30/16 9:28 PM, Ryan Schmidt wrote: /usr/bin/open is not necessarily suitable. For example, I have configure my system so that if I `open` a .html file, it opens into my text editor, because I frequently edit html files. However, if another program is trying to open a web page, then I

Re: html and postscript viewer

2016-03-30 Thread Mark Brethen
According to the documentation these parameters are actually the names of shell scripts that CGX runs to open the viewers. For example, the instruction for the html viewer are as follows: Create the shell script, respectively a file with filename “firefox“ (or any other file- name) in a

Re: html and postscript viewer

2016-03-30 Thread Ryan Schmidt
> On Mar 30, 2016, at 8:36 PM, Kevin Walzer wrote: > > On 3/30/16 9:28 PM, Ryan Schmidt wrote: >> /usr/bin/open is not necessarily suitable. For example, I have configure my >> system so that if I `open` a .html file, it opens into my text editor, >> because I frequently

Re: html and postscript viewer

2016-03-30 Thread Ryan Schmidt
On Mar 30, 2016, at 8:21 PM, Kevin Walzer wrote: > On 3/30/16 9: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

Re: html and postscript viewer

2016-03-30 Thread Mark Brethen
> On Mar 30, 2016, at 8:24 PM, Mark Brethen wrote: > > I’ll use /opt/local/share/doc/${name} for the default location. to be more correct, $(prefix}/share/doc/${name} ___ macports-dev mailing list

Re: html and postscript viewer

2016-03-30 Thread Mark Brethen
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

Re: html and postscript viewer

2016-03-30 Thread Kevin Walzer
On 3/30/16 9: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

Re: html and postscript viewer

2016-03-30 Thread Ryan Schmidt
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

html and postscript viewer

2016-03-30 Thread Mark Brethen
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?