/************************************************************************/
/**                                                                    **/
/**                 FreeBSD Installation of DISLIN                     **/
/**                                                                    **/
/** Contents: 1.) Introduction                                         **/
/**           2.) Installation of the tar.gz Distribution              **/
/**           3.) Compiling, Linking and Running the Example Programs  **/ 
/**           4.) Using DISLIN from Perl                               **/
/**           5.) Using DISLIN from Python                             **/
/**           6.) Using DISLIN from Java                               **/
/**           7.) Getting a DISLIN License                             **/
/**           8.) Web Sites.                                           **/
/**                                                                    **/
/** Date   : 15.10.2006                                                **/
/** Version: 9.1  / FreeBSD, gcc + g77 + f2c                           **/
/** Author : Helmut Michels, Tel.: +49 5556 979 334                    **/
/**          MPI fuer Sonnensystemforschung, Max-Planck-Str. 2,        **/
/**          D-37191 Katlenburg-Lindau, Germany                        **/
/** Mail:    michels@mps.mpg.de                                        **/
/************************************************************************/

1.) Introduction

   DISLIN is a high level and easy to use graphics library for displaying
   data as curves,  bar graphs,  pie charts,  3D-colour plots,  surfaces,
   contours and maps. The software is available for several C, Fortran 77
   and Fortran 90 compilers.

   The UNIX versions of the graphics software  DISLIN  are distributed as 
   compressed tar files with the file names 'dislin-n.m.xxx.tar.gz' where
   'n.m' contains the DISLIN version while the part 'xxx'  identifies the 
   operating system or compiler.  


2.) Installation of the tar.gz Distribution

a) Uncompress the tar.gz file with the command

                  gzip -d     dislin-9.1.fbsd.tar.gz


b) Restore files from the tar file with the command

                  tar   xvf   dislin-9.1.fbsd.tar    

c) Change to the extraction directory of DISLIN

                  cd    dislin-9.1

d) Choose a directory in the file structure where DISLIN should be
   installed and define the environment variable DISLIN with it:

   For example:    DISLIN=$HOME/dislin
                   export DISLIN
    
e) Run the install program with the command 

                   INSTALL

   This program copies files to $DISLIN and sets protections.

f) To make DISLIN available for general use, write the following com-
   mands to your .profile or to /etc/profile

                    DISLIN=directory                     
                    export DISLIN
                    PATH=${PATH}:${DISLIN}/bin

                    LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
                    export LD_LIBRARY_PATH

g) You can delete the directory 'dislin-9.1'.


3.) Compiling, Linking and Running the Example Programs

   Now you can compile, link and run the example programs in the
   directory $DISLIN/examples with the commands:

                    clink   -a exa_c      (for gcc)       
                    dlink   -a exa_f77    (for g77)
    and
                    clink   -a map_c      (for gcc)       
                    dlink   -a map_f77    (for g77)
 
   Notes: - An alternate linking method is:

            gcc -o exa_c exa_c.o -L$DISLIN -ldislin           (for gcc)
            f77 -o exa_f77 exa_f77.o -L$DISLIN -ldislin       (for g77)

          - clink and dlink link by default with the DISLIN single 
            precision library libdislin.so. A double precision version
            of the library for real numbers is included in this 
            distribution with the name libdislin_d.so.


4.) Using DISLIN from Perl        

   A DISLIN module for the programming language Perl is included in this
   DISLIN distribution. The module and some examples can be found in the
   directory $DISLIN/perl

   To use DISLIN from Perl, you have to define the  environment variable
   PERL5LIB:

             export PERL5LIB=$DISLIN/perl

   Note: The source code of the DISLIN Perl module is included in the
         $DISLIN/perl directory for re-creating the module.


5.) Using DISLIN from Python        

   An extension module for the programming language Python is also included
   in  DISLIN for FreeBSD. The module and examples can be found in the
   directory $DISLIN/python

   To use DISLIN from Python, you have to define the  environment variable
   PYTHONPATH:

             export PYTHONPATH=$DISLIN/python

   Note: Source code of the Python extension is included in $DISLIN/python
         for re-creating the module.


6.) Using DISLIN from Java        

   An interface for the programming language Java is also included in
   the DISLIN distribution for FreeBSD. It allows to use DISLIN routines
   from Java applications. The interface and examples can be found in 
   the directory $DISLIN/java

   To use DISLIN from Java, you have to define the  environment variable
   CLASSPATH:

             export CLASSPATH=$DISLIN/java/dislin.jar:.
   
   The examples in $DISLIN/java can be compiled and executed with the
   commands

   javac  example.java
   java   example 

   Note:  The shareable library disjava-9.1.so in the directory $DISLIN/java
          is created with Java version 1.4.2. The source code of the Java 
          interface is included in $DISLIN/java for re-creating the interface. 


7.) Getting a DISLIN License

   DISLIN is free for non-commercial use. Licenses for selling programs
   linked with DISLIN or for using DISLIN in an environment related to
   business are available from the site http://www.dislin.de. 


8.) Web Sites

   DISLIN is available via ftp anonymous from the following site:

      ftp://ftp.gwdg.de/pub/grafik/dislin 

   The DISLIN home page is:

      http://www.dislin.de


