Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/interkosmos/fortran-motif
Fortran 2008 interface bindings to Motif
https://github.com/interkosmos/fortran-motif
fortran fpm motif x11 xlib xm xmhtml xt
Last synced: about 1 month ago
JSON representation
Fortran 2008 interface bindings to Motif
- Host: GitHub
- URL: https://github.com/interkosmos/fortran-motif
- Owner: interkosmos
- License: isc
- Created: 2020-05-28T15:16:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T21:01:18.000Z (about 3 years ago)
- Last Synced: 2024-01-30T09:10:35.891Z (11 months ago)
- Topics: fortran, fpm, motif, x11, xlib, xm, xmhtml, xt
- Language: Fortran
- Homepage:
- Size: 26.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://sourceforge.net/projects/xmhtml/) widget to render HTML 3.2
inside a Motif widget (optional).## Dependencies
Either use [Motif](https://en.wikipedia.org/wiki/Motif_(software)) or
[LessTif](https://en.wikipedia.org/wiki/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
$ cd examples//
$ ./
```## Licence
ISC