A collection of Fortran 2018 interface bindings to the lightweight XMPP client library libstrophe.
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 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
.
You can add fortran-xmpp as an FPM dependency:
[dependencies]
fortran-xmpp = { git = "https://github.com/interkosmos/fortran-xmpp.git" }
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
ISC