Gl2ps-af is based on Gl2ps version 1.3.2, the latest at the time of writing.
./configure make make installor any reasonable variant of it. Try configure --help for more options to the configure script; in order to enable the build of Fortran 90/95 bindings, start configure with the --enable-fortran option. The package also contains a spec file so that you can quickly build a rpm package, on a GNU/Linux system supporting rpm, just issuing the command rpmbuild -ba <package-name>.tar.gz.
Gl2ps-af has been tested on Fedora 8 and Debian lenny i386/x86_64 Linux systems. It has been successfully tested with gfortran and pgf90 Fortran compilers.
Here only the difference with respect to the C version are described, so you should refer to Gl2ps manual gl2ps.pdf for a complete description. The interface for the Fortran language is:
FUNCTION gl2psbeginpage(title, form, sort, buffersize, filename) CHARACTER(LEN=*), INTENT(in) :: title, filename INTEGER, INTENT(in) :: form, sort, buffersize INTEGER :: gl2psbeginpage
FUNCTION gl2psendpage() INTEGER :: gl2psendpagePredefined constants for the values of format, sort and ierr are defined in the gl2ps Fortran module with the same names as for the C calls.
A typical use is the following:
USE gl2ps
INTEGER :: ierr, bufsize
!...
bufsize = 1000000
ierr = GL2PS_OVERFLOW
DO WHILE(ierr == GL2PS_OVERFLOW) ! Loop until bufsize is enough
bufsize=bufsize*2
ierr = gl2psbeginpage('geomap', GL2PS_PS, GL2PS_BSP_SORT, bufsize, &
'geomap.ps')
CALL display ! Call the desired display function here
ierr = gl2psendpage()
ENDDO
!...
Gl2ps-af
GNU Autotools support and Fortran 90/95 bindings for Gl2ps
Copyright (C) 1999-2006 Christophe Geuzaine, geuz <at> geuz.org
Copyright (C) 2008 Davide Cesari, dcesari <at> arpa.emr.it
The sources are distributed according to the GNU LGPL license.
See COPYING.GL2PS file for the full license terms.