Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.56 KB

README.md

File metadata and controls

73 lines (48 loc) · 1.56 KB

fortran-xmpp

Build

A collection of Fortran 2018 interface bindings to the lightweight XMPP client library libstrophe.

Dependencies

The package libstrophe has to be installed with development headers. On FreeBSD, run:

# pkg install net-im/libstrophe

On Linux, instead:

# apt-get install libstrophe0 libstrophe-dev

Build Instructions

Build and install the Fortran library using the provided Makefile:

$ make
$ make install PREFIX=/opt

Or, use the Fortran Package Manager:

$ fpm build --profile release

Link your Fortran programs against libfortran-xmpp.a and pkg-config --libs libstrophe openssl expat zlib.

Fortran Package Manager

You can add fortran-xmpp as an FPM dependency:

[dependencies]
fortran-xmpp = { git = "https://github.com/interkosmos/fortran-xmpp.git" }

Examples

Some example programs can be found in directory examples/:

  • basic – connects to an XMPP server.
  • bot – implements a simple bot.
  • roster – prints contact list.
  • uuid – outputs UUID.

Build the examples by running:

$ make examples

Further Reading

Licence

ISC