<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head> <!-- <DEFANGED_STYLE type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --> --> </DEFANGED_STYLE><title>Re: [GRASSLIST:5851] Download Grass OSX aqua (new
with cha</title></head><body>
<div>Hi all</div>
<div><br></div>
<div>It's ready last CVS (050219) for GRASS 6 with A NEW MENU IN AQUA
NATIVE.</div>
<div><br></div>
<div>You have to download and install before the grass libraries patch
for enabling this features from:</div>
<div
>http://wwwamb.bologna.enea.it/forgrass/files/grasslib_patch_aqua_gda<span
></span>l_e00_050202.zip</div>
<div><br></div>
<div>It includes:</div>
<div>- previous GDAL patch;</div>
<div>- e00 import files;</div>
<div>- NEW AQUA OSX MENU for GRASS 6.</div>
<div><br></div>
<div>After download last GRASS 6 CVS from my cvs page:</div>
<div><br></div>
<div>http://wwwamb.bologna.enea.it/forgrass/downloadcvs.htm</div>
<div><br></div>
<div>Drag grass60cvs app inside /Applications/Grass folder.</div>
<div><br></div>
<div>Open grass60cvs and now you can select your preferred menu: OSX
and/or X11.</div>
<div><br></div>
<div>Grass use TclTk for GIS Manager and TclTk is available in Mac OS
X under 2 release: X11 and Aqua native.</div>
<div>I use all X11 tcltk libs and 1 runtime app with name &quot;Wish
Shell&quot; for AQUA version.</div>
<div>All is installed in /usr/local/grasslib folder.</div>
<div>Wish Shell.app (runtime version for TclTkAqua) is installed in
/usr/local/grasslib/bin.</div>
<div>Nothing is outside: nothing goes to conflict.</div>
<div>More info about TclTk: http://www.tcl.tk</div>
<div>More info about TclTkAqua:
http://tcltkaqua.sourceforge.net/</div>
<div><br></div>
<div
>--------------------------------------------------------------------<span
></span>-------</div>
<div><br></div>
<div>GRASS WITH MENU IN OS X</div>
<div>=======================<br>
</div>
<div>1) I have created a small starting application in
apple-script-studio<br>
</div>
<div>2) Inside grass60cvs application in Contents/Resources there are
2 folders:<br>
</div>
<div>grass-6.0.cvs</div>
<div>grassx-6.0.cvs</div>
<div><br>
The first one is the complete package with all code and it works in
X11.</div>
<div>The second one is for Grass with OS X menu and it has all
symbolic links to the first one but 3 files:</div>
<div>only 3 files are modified in grassx-6.0.cvs</div>
<div><br></div>
<div>3) changes only for OSX menu version</div>
<div>---------------------------------------------<br>
changes in etc/Init.sh<br>
</div>
<div>row 188-189 (X11 OSX version in grass-6.0.cvs/etc/Init.sh )</div>
<div>- export GRASS_TCLSH=/usr/local/grasslib/bin/tclsh<br>
- export GRASS_WISH=/usr/local/grasslib/bin/wish<br>
</div>
<div>row 188-189<br>
+ export GRASS_TCLSH=/usr/local/grasslib/bin/Wish\
Shell.app/Contents/Frameworks/Tcl.framework/Versions/8.4/Tcl</div>
<div>+ export GRASS_WISH=/usr/local/grasslib/bin/Wish\
Shell.app/Contents/MacOS/Wish\ Shell<br>
<br>
- if [ ! &quot;$GRASS_TCLSH&quot; ] ; then<br>
-&nbsp;&nbsp;&nbsp;&nbsp; GRASS_TCLSH=tclsh<br>
-&nbsp;&nbsp;&nbsp;&nbsp; export GRASS_TCLSH<br>
- fi<br>
-<br>
- if [ ! &quot;$GRASS_WISH&quot; ] ; then<br>
-&nbsp;&nbsp;&nbsp; WISH_OS=`echo 'puts $tcl_platform(platform) ; exit
0' | wish`<br>
-&nbsp;&nbsp;&nbsp; if [ &quot;$?&quot; = 0 -a &quot;$WISH_OS&quot; =
macintosh ] ; then<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #force X11 tcl on Mac:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GRASS_WISH=/usr/bin/wish<br>
-&nbsp;&nbsp;&nbsp; else<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GRASS_WISH=wish<br>
-&nbsp;&nbsp;&nbsp; fi<br>
-&nbsp;&nbsp;&nbsp; export GRASS_WISH<br>
- fi<br>
<br>
row 582&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp; # Check for tcltk interface<br>
&nbsp;&nbsp;&nbsp;&nbsp; tcltk)<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;$GISBASE/scripts/d.m&quot; &amp;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;$GISBASE/scripts/d.m&quot; | sh &amp;<br>
&nbsp;<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>;;<br>
<br>
---------------------------------------------<br>
<br>
changes in etc/dm/dm.tcl<br>
<br>
Search and Replace all:</div>
<div>Control-Key&nbsp;&nbsp;&nbsp; --&gt; Command-Key</div>
<div><br>
---------------------------------------------<br>
<br>
changes in etc/dm/menu.tcl<br>
<br>
Search and Replace all:<br>
all file 1&nbsp;&nbsp;&nbsp;&nbsp; --&gt;&nbsp;&nbsp;&nbsp;&nbsp; all
file 0<br>
all options 1&nbsp; --&gt;&nbsp;&nbsp;&nbsp;&nbsp; all options 0<br>
{} &quot;&quot; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--&gt;&nbsp;&nbsp;&nbsp;&nbsp; {} &quot;&quot; 0<br>
&quot; 1 [&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot; 0 [<br>
Ctrl-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--&gt;&nbsp;&nbsp;&nbsp;&nbsp; Command-<br>
</div>
<div>---------------------------------------------</div>
<div><br></div>
<div>The changes in d.m.tcl and menu.tcl convert Ctrl-Key with
Command-Key, more natural for all Mac apps: you can print with
Command-P or save the workspace with Command-S (apple-S).</div>
<div><br></div>
<div>You can browse inside a Mac standard dialog, you can use
Copy-Paste inside the box and much more: it's completely a new
experience.</div>
<div><br></div>
<div>CONS.</div>
<div>- a bit slower refresh in GIS Manager list in OSX Aqua;</div>
<div>- display raster map with legend is erased at the end (but the
future version of GIS Manager changes this feature and it works)</div>
<div>- d.font freeze under OSX Aqua (I think that d.font search X11
fonts from Aqua and it doesn't find them)</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><b>Comments and other changes</b> (font menu, print menu,
etc...)<b> are welcome</b><br>
</div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div
>____________________________________________________________________<span
></span>____<br>
||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorenzo
Moretti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:
lorenzo.moretti@bologna.enea.it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
||/|/|&nbsp; ENEA
prot/idr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web:
http://wwwamb.bologna.enea.it/&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div>||&nbsp;&nbsp; |&nbsp; via Don Fiammelli, 2&nbsp;&nbsp; FTP:
ftp://ftpamb.bologna.enea.it/&nbsp;(ris.)<br>
~~~~~~&nbsp; 40128 BOLOGNA - ITALY&nbsp; Ph: +39-0516098086&nbsp; Fax:
+39-0516098131<br>
_____________________________________________________________________<span
></span>___</div>
</body>
</html>