Skip to content

interkosmos/fortran-motif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortran-motif

A collection of ISO C binding interfaces to X/Motif, to create graphical user interfaces for Unix in Fortran 2008. Currently, fortran-motif is just a proof of concept. The library includes selected bindings to Xlib, Xt, Xm, and the XmHTML widget to render HTML 3.2 inside a Motif widget (optional).

Dependencies

Either use Motif or LessTif.

On FreeBSD, install Open Motif with:

# pkg install x11-toolkits/open-motif

On Linux, additional development headers may be required. If you want to use the XmHTML widget, install:

# pkg install x11-toolkits/xmhtml

Compilation

The compilation has been tested on FreeBSD 12 with Open Motif and GNU Fortran 10. Build fortran-motif with the provided Makefile and (optional) arguments:

$ make motif

You probably want to add the argument PREFIX=/usr on Linux. In order to include bindings to the XmHTML widget, run:

$ make all

Examples

See directory examples/ for Motif applications written in Fortran:

  • bitmap shows an XBM bitmap.
  • click displays an XmPushButton widget inside an XmForm widget.
  • www shows an XmHTML widget with HTML 3.2 content.

Compile and run a particular example with:

$ make <name>
$ cd examples/<name>/
$ ./<name>

Licence

ISC

Releases

No releases published

Packages

No packages published