These changes will be folded into the main ggi tree very shortly.
Before applying his patch, make sure it has not already been
incorporated into the CVS tree.

Here is the announcement from Emmanuel Marty <[email protected]>:

I have great news ! I succeeded in compiling libggi on IRIX (Silicon
Graphics' implementation of unix(tm) system V). I have tested X and
memory targets, they work just fine. This is so cool.. You can write
a program under the linux console using KGI display drivers, and have
it run without a single change in a nifty X window on a SGI
workstation :)

I had joked about this in a post once, Andreas said it could be
done (he talked about directly addressing SGI hardware, but well
this will come later ;). Here it is.

What you need to compile libggi on irix :

* a diff I made of all the changes I had to do in order to
 include support for the new architecture

 You can get it at :

 ftp://fire.greyfox.org/pub/ggi/IRIX-libggi.diff.gz

 to apply the patch, cd to the ggi root directory and do :

 patch -p1 < /wherever/it/is/IRIX-libggi.diff.gz

 /wherever/it/is being replaced by the correct path ;

 I'll keep this file there, until changes are merged into the
 main repository.. Check first before merging into the repository,
 that I didn't break anything. I've been very careful, but you never
 know.

* GNU Make

 IRIX make is broken and lacks too many things. You can
 get GNU make via ftp on prep.ai.mit.edu i believe, and you
 should have it installed anyway, if you want to keep your
 sanity when developing c on an SGI box.

* IRIX IDO and c compiler (cc)

 gcc doesn't work properly on IRIX, requires an old broken
 linker, and produces bloated code on mips, so far. SGI's cc
 is a bit different, but produces pretty good code for MIPS.

 I had a living hell making changes for libggi to work with cc,
 but it works now. I hopefully haven't broken anything for gcc
 and braced any cc-specific code around #ifdef/#endif, but please
 report anything I would have broken :)

* ANSI C, IRIX and X11 headers

 obviously, you need that. if you installed the development packages
 from Silicon Graphics, you have them, anyway.

* IRIX 6.3 or above, on a 32-bit architecture

 unless you want to do the few modifications for compiling on
 64-bit. if you can do that, please go ahead and send diffs to me,
 because i can't.

Follow instructions in README_IRIX in ggi/lib/libggi for compilation
and installation.

IMPORTANT NOTE:

This is a diff for compiling libggi on a 32-bit SGI machine, running
IRIX 6 - so this is for IRIX 6.3 or above. I don't have a 64-bit
arch around, so I wouldn't be able to test it. If anyone is running
IRIX 6.2, 6.3 or 6.4 on a 64-bit SGI workstation, there are few
changes to do (look in README_IRIX) ; please do them, compile,
and report how it goes. Don't even try to compile on a 64-bit arch
without making changes.

demos in lib/libggi/demos don't compile because of makefile
brokenness, and i'm too hyper to figure that out at the moment ..
just very happy it works :) but you can test it with warp-ggi
(heh), you need a version i uploaded today though, at :

ftp://fire.greyfox.org/pub/ggi/warp-ggi-111097.tar.gz

This is the same version as yesterday, but I fixed a portability
bug that occured to me when compiling on the SGI: readpcx.c didn't
work on big-endian architectures. It now includes compilation
directives in the Makefile, for IRIX, too. Please feel free to
add directives for other archs (e.g. Digital Unix) and send diffs
to me. Sorry for this.. Please all download the new version. I won't
make another for some time, promise :)