...
This script is very similar to what magics-config offered previously, but pkg-config is more general while magics-config was very Magics specific options. For example:
For C programs: gcc -o wind wind.c $(pkg-config config --libs libs --cflags cflags magics)
gfortran For single float precision Fortran: gfortran -o wind wind.f -lMagPlusSingle $(pkg-config config --libs libs magics)
For double float precision Fortran: gfortran -o wind wind.f
-fdefault-real-8
-lMagPlusDouble $(pkg-config config --libs libs magics)
To find these information about the Magics compilation the environment, the variable PKG_CONFIG_PATH needs to contain the directory $MAGPLUS_HOME/lib/pkgconfig:
...